Facebook Login Authentication In JavaScript – AuthJs

Category: Javascript | September 22, 2020
Author:rohit-chouhan
Views Total:60 views
Official Page:Go to website
Last Update:September 22, 2020
License:MIT

Preview:

Facebook Login Authentication In JavaScript – AuthJs

Description:

AuthJs is a vanilla JavaScript Facebook Authentication library that enables your website to authenticate identity using Facebook Login App.

How to use it:

1. Download and load the authjs.min.js into the document.

<script src="authjs.min.js"></script>

2. Create a Facebook Login App on the Facebook Developer Tools.

3. Set the Facebook App ID.

authjs.set("YOUR APP ID HERE");

4. Login & Logout your website using Facebook Login Authentication.

authjs.login();
authjs.loginout();

5. Get the current status.

authjs.status();

6. Get the user’s information.

authget.id
authget.name
authget.profile
authget.accessToken

You Might Be Interested In:


Leave a Reply