To add your own facebook login system to the script you need to create an facebook app. for that follow below steps
Step 01:
login to your facebook and go to https://developers.facebook.com.
![](https://xgenious.com/wp-content/uploads/2021/07/Screenshot-at-Jul-29-20-21-55-1024x381.png)
Step 02:
now click on my apps button
![](https://xgenious.com/wp-content/uploads/2021/07/Screenshot-at-Jul-29-20-21-45-1024x386.png)
Step 03:
now click on create app
![](https://xgenious.com/wp-content/uploads/2021/07/Screenshot-at-Jul-29-20-24-38-1024x241.png)
Step 04:
select app type, select consumer and click continue
![](https://xgenious.com/wp-content/uploads/2021/07/image.png)
Step 05:
give info for your app
![](https://xgenious.com/wp-content/uploads/2021/07/Screenshot-at-Jul-29-20-32-24.png)
Step 06:
now go to facebook login settings area
![](https://xgenious.com/wp-content/uploads/2021/07/Screenshot-at-Jul-29-20-40-19-1024x377.png)
Step 07:
now you have to setup your facebook callback url, your facebook login call will yourdmain.com/facebook/callback, do not forget to change your actual domain with yourdomain.com
![](https://xgenious.com/wp-content/uploads/2021/07/Screenshot-at-Jul-29-20-42-12-1024x530.png)
Step 08:
now go to settings > basic settings
![](https://xgenious.com/wp-content/uploads/2021/07/Screenshot-at-Jul-29-20-44-54-1024x315.png)
Step 09:
add your app domain and your email, remember your app domain must be your website url.
![](https://xgenious.com/wp-content/uploads/2021/07/Screenshot-at-Jul-29-20-46-36-1024x473.png)
Step 10:
add platform select website
![](https://xgenious.com/wp-content/uploads/2021/07/Screenshot-at-Jul-29-20-49-41-1024x601.png)
Step 11:
add website url to Platform
![](https://xgenious.com/wp-content/uploads/2021/07/Screenshot-at-Jul-29-20-50-50-1024x569.png)
Step 12:
now you have to add your facebook app id and app secret to your website admin panel, for this go to “General Settings > third party scripts”
![](https://xgenious.com/wp-content/uploads/2021/07/Screenshot-at-Jul-29-20-51-36-1024x178.png)
if facebook login is not enable, then enable it and add facebook app id and app secret
![](https://xgenious.com/wp-content/uploads/2021/07/Screenshot-at-Jul-29-20-55-18-1024x181.png)
that’s it, facebook login setup is done.