Facebook App ID can be used for implementing social login functionality in web applications, which allow end users to log in third-party applications via their own Facebook accounts.

You know, by default, a Facebook App ID is in Development mode, which is for testing only: you can test login with only the Facebook account that owns the App ID. So to allow any users login using their own Facebook accounts, you have enable Live mode for your Facebook App ID, follow the steps below:

- Go to Facebook for Developers home page. Click My Apps and edit your App ID. Then go to Settings > Basic

- Add live domain of your website to the App Domains field (1)

- Specify Privacy Policy URL (2) and Data Deletion Instruction URL (3)

- Switch App Mode from Development to Live (4)

It is well explained in this screenshot:

Facebook App ID Basic Settings

Note that the URL must starts with https (be sure you have SSL setup for your website beforehand). Then click Save Changes.



Next, go to Facebook Login > Settings. Under Valid OAuth Redirect URIs, add a redirect URI of your live website – which is something like this:

FB Add redirect URI

And click Save Changes.

And you know, the social login function on your website will require the users to give permission to know their names and emails. So you need to Get Advanced Access for email and public_profile scopes. Go to App Review > Permissions and Features. Click Request Advanced Access for email and public_profile, as shown below:

FB App permissions and features

And you’re all set, having your Facebook App ID live, ready for production.

To see the steps in action, I recommend you check this video:

 

Related Articles:

 


About the Author:

is certified Java programmer (SCJP and SCWCD). He started programming with Java in the time of Java 1.4 and has been falling in love with Java since then. Make friend with him on Facebook and watch his Java videos you YouTube.



Add comment