How to configure Facebook API¶
Facebook requires that you create an external application linking your website to their API. Application id and secret (also sometimes referred as Consumer key and secret or Client id and secret) are what we call an application credentials. This application will link your website example.com to Facebook API and these credentials are needed in order for Facebook users to access your website.
These credentials may also differ in format, name and content depending on the social network.
To enable authentication with this provider and to register a new Facebook API Application, follow the steps:
Login Facebook by click on Login or create a new Facebook account. After that, click on My App from the Apps menu at the top
Then, a popup will display. Fill out Display name for your app.
Enter the securuty code before creating a new Facebook API
Go to Settings page and click on Add Platform. Then, choose Website
Go to the Review page and choose YES to make the app to be public.
Go back to the Settings page. The created application credentials (APP ID and Secret) will be shown like the image below.
- Add a Product
- No need to choose any platforms. Click the Settings on the left to input the RedirectURIs.
- Leave all the default Options, get the Valid OAuth redirect URIs from our SocialLogin settings in backend.
Paste the link into the input and press Save changes button on the bottom right screen.
Copy and insert API into API fields in the extension’s setting under Admin panel. Please check this image.
And that’s it!
If for some reason you still can’t manage to create an application for Facebook, you can ask for support.