Url Facebook Login
Facebook Login for the Web with the JavaScript SDK
Facebook Login with the Facebook SDK for JavaScript enables people to sign into your webpage with their Facebook credentials.
If for some reason you can't use our JavaScript SDK, you can also implement Facebook Login without it. To implement Facebook Login without the JavaScript SDK, see Manually Building a Login Flow.
Before you begin to implement Facebook Login with the JavaScript SDK, you need a Facebook App ID, which you can create and retrieve in the App Dashboard. You also need somewhere to host HTML files.
Implement Login with the following steps:
Enter Your Redirect URL to take people to your successful-loginpage.
Check the login status to see if someone's already logged into your app. During this step, you should also check to see if someone has previously logged into your app, but is not currently logged in.
Log people in, either with the login button or with the login dialog, and ask for a set of data permissions.
Log people out to allow them to exit from your app.
There is a full code example at the end of this topic.
1. Enter Your Redirect URL
In the App Dashboard, choose your app and go to Products > Facebook Login > Settings. Under the Client OAuth Settings, enter your redirect URL in the Valid OAuth redirect URIs field for successful authorization.
2. Check Login Status
The first step when loading your webpage is figuring out if a person is already logged into your app with Facebook Login. You start that process with a call to FB.getLoginStatus. That function will trigger a call to Facebook to get the login status and call your callback function with the results.
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});The response object that is provided to your callback contains a number of fields:
Facebook Login for the Web with the JavaScript SDK
Facebook Login with the Facebook SDK for JavaScript enables people to sign into your webpage with their Facebook credentials.
If for some reason you can't use our JavaScript SDK, you can also implement Facebook Login without it. To implement Facebook Login without the JavaScript SDK, see Manually Building a Login Flow.
Before you begin to implement Facebook Login with the JavaScript SDK, you need a Facebook App ID, which you can create and retrieve in the App Dashboard. You also need somewhere to host HTML files.
Implement Login with the following steps:
Enter Your Redirect URL to take people to your successful-loginpage.
Check the login status to see if someone's already logged into your app. During this step, you should also check to see if someone has previously logged into your app, but is not currently logged in.
Log people in, either with the login button or with the login dialog, and ask for a set of data permissions.
Log people out to allow them to exit from your app.
There is a full code example at the end of this topic.
1. Enter Your Redirect URL
In the App Dashboard, choose your app and go to Products > Facebook Login > Settings. Under the Client OAuth Settings, enter your redirect URL in the Valid OAuth redirect URIs field for successful authorization.
2. Check Login Status
The first step when loading your webpage is figuring out if a person is already logged into your app with Facebook Login. You start that process with a call to FB.getLoginStatus. That function will trigger a call to Facebook to get the login status and call your callback function with the results.
RELATED POSTS:
- Aquarius star sign daily Horoscope
- Get Facebook fans Free
- Facebook poll Tool
- Facebook Search l
- Who has viewed my Facebook Page
- Email Account
- Change language settings to English
- How do i block my fb account Permanently
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});The response object that is provided to your callback contains a number of fields:
0 comments:
Post a Comment
Facebook has greatly reduced the distribution of our stories in our readers' newsfeeds and is instead promoting mainstream media sources. When you share to your friends, however, you greatly help distribute our content. Please take a moment and consider sharing this article with your friends and family. Thank you.