Facebook Social Authentication – How To Get A Facebook API Key?
Create a Facebook app, copy its App ID and App Secret into the Vehica Panel, and take the app through App Review so your visitors can log in with Facebook.
4 minute read
Create the Facebook app
-
1
Open the Facebook for Developers page
Go to https://developers.facebook.com/apps/ and sign in.
-
2
Click Create App
The button sits above the list of your existing apps.
-
3
Fill in the app details
Enter an App name and an App contact email, then click Next.
-
4
Choose the Facebook Login use case
On the Use cases step set Filter by: All and select Authenticate and request data from users with Facebook Login, then click Next.
-
5
Pick a business portfolio
You can choose I don’t want to connect a business portfolio yet. or an existing business portfolio if you already have one. It is up to you.
-
6
Review the requirements
Facebook lists what you will have to complete later.
-
7
Go to the dashboard
On the Overview step, click Go to dashboard.
Configure Facebook Login
-
1
Open App customization and requirements
You land on the app dashboard — select App customization and requirements.
-
2
Add the email permission
In the Permissions and Features panel, add email.
-
3
Open the Settings tab
This is where the Valid OAuth Redirect URIs field lives — the next step is where you get that address from.
-
4
Copy your OAuth redirect URI from Vehica
You will find it in Vehica Panel > User Panel, in the Facebook section. Paste it into Valid OAuth Redirect URIs.
-
5
Select the Web platform in Quickstart
Go to Quickstart and choose Web.
-
6
Add your domain as the Site URL
Enter your site address in the Site URL field and click Save.
Fill in the basic settings and copy the keys
-
1
Open App settings > Basic
Use the menu on the left of the app.
-
2
Complete the missing information
The app only works properly once Privacy Policy URL, Terms of Service URL, User data deletion instructions, App icon and Category are filled in.
-
3
Copy the App ID and App Secret
Click Show to reveal the secret.
-
4
Paste them into the Vehica Panel
Put them in the App ID and App Secret fields of Vehica Panel > User Panel, tick Enable Facebook Auth, and save.
Complete App Review and publish the app
-
1
Answer the data handling questions
Start here — the questions cover how your app uses the data it receives.
-
2
Provide reviewer instructions
Describe how a reviewer can test the login on your site.
-
3
Answer the permission questions
Answer the questions marked in green: “How will this app use email?” and “How will this app use public_profile?”.
-
4
Submit for review
Once every required step is done, the Submit for Review button becomes active.
-
5
Publish the app
Go to the Publish section and click Publish in the bottom-right corner.
Now the Facebook login should be available on your website.
Resolving Permission Issues in Live Mode for Facebook Login App
If your app operates smoothly in development mode but encounters problems in Live mode, the issue may stem from permissions settings.
To address this, navigate to App Review > Permissions and Features > public_profile and check whether the API calls column is active. For your app to function properly, it should be set to "Auto granted", as shown below:
However, if you find it displayed as "Inactive (0)" like this:
This indicates that Facebook requires additional verification for your app and the problem is not related to WordPress and Listivo Theme. To resolve this issue, follow Facebook's App Review process detailed in their official documentation: https://developers.facebook.com/docs/app-review/introduction
public_profile permission to be upgraded to "Advanced" for Facebook Login to work. To enable this option, you must complete Business Verification. More on access levels: https://developers.facebook.com/docs/graph-api/overview/access-levels/Ask the people who build Vehica
We answer by email from support@tangiblewp.com. With Premium Support, we also fix your site when something breaks.
We can also run your site for you, or build a new one.
Was this guide helpful?