How to Connect Facebook API for Social Login?

As like LinkedIn, your users can also Signup or Log in using their Facebook account. To enable this feature, you need to activate the Facebook API key.

Let’s see, how to create Facebook API key. 

Create a Facebook App #

  • Go to Meta for Developers and log in.
AD 4nXdjEPWOBlpTZxIzZCQgfOUtD9sFr IafUQs9gTfcze9kdbqGHXh67Htat7dDY6xbQyc9C H v6FNa9IBx
AD 4nXfTk2lIZLeYeGFdzF
  • Provide App name and contact email.
AD 4nXfxfPniVnOq8NW0SR5pJwwhpEKI2H 7cDaQTlHy2Op3APoV 2kNFzYccLdxBKnngrncFk2orI 0rv I 201Yw7JAWexe5Z39P3j0GahyLlzRTSXQfkaNaZ9YZ815FmIcc edrVR?key=4NUHmnuD6hPIpJdQtbcrrA
  • In the Use Case tab, select the “Authenticate and request data from users with Facebook Login” and then click “Next.”
  • Choose the business profile you want to connect to the app.
AD 4nXcsHh9YVeHnWdIGO3OipI8mb0fXYBHR8 G0AUrSdUbAcTieAQt7GLIFSohE0RFN8GL uiofd2PFgQOBaGi7xJNKSy0EXjLCaYZNEQ3Li3BGO mfn1ZsWpQ7M47t9Q7d2NwR0 Tb5g?key=4NUHmnuD6hPIpJdQtbcrrA
  • After selecting the business, click on “Next.” You will see a requirement page. Just click on “Next” there too.
AD 4nXf2n 5nL1xEfoUHacjwYetNaENZz3Yw1fq yyMf2i2xXV4b1QJiY7oChqjy
  • Click “Go to Dashboard”.
  • Click the “Use cases” tab on the left side, and then click the “Customize” button next to the “Authentication and account creation” item.
AD 4nXdes3I732imWcX2wQCHFX0RRUCtWliq4yJOLL4 pvSIY7PQm O0453r9gMnjnstGbS4wZ97hzWeIpAtMoZeWsYmto5MsLoK1q7k53Do Ken5bzpnNMroAWLSyTwv5Zkwm38v0r7?key=4NUHmnuD6hPIpJdQtbcrrA
  • Under Permissions, click Add next to Email
AD 4nXeemEg6fO9Ixa6ZsgCIaWMFDUo75

Note: If you receive a blank page after you press the “Save changes” button, try to refresh the page

AD 4nXfEeceW9jaNkiQStU2cYRV3w9qHy0DzwqEJyu52wnDNNkCIe9kinbp7rO ap02AX47Hv3LDFplGMWWUuQ 8jhqoM78ZcqoJKpR6sKfv5FtH9rThYuF38uiZTTghCcdLpGDjMHUiqQ?key=4NUHmnuD6hPIpJdQtbcrrA

Configuring the App #

  • On the left side, click the “App settings” tab, then click “Basic
AD 4nXcZArq7gswkfwJgknp0O1aMGn3srX8MQy4oduekC6TduPBv k5adodMRx5 9 4ga7y2IVN W7v6JOi o2D12Z3kBsI Hj AIriclZWeKpkDdJ205ipobUqD9 CRugPLQzh 0NqAZA?key=4NUHmnuD6hPIpJdQtbcrrA
  • Enter your domain name in the “App Domains” field.
  • Fill in the “Privacy Policy URL” field. Provide a publicly available and easily accessible Privacy Policy that explains what data you are collecting and how you will use that data.
  • At the “User Data Deletion“, choose the “Data Deletion Instructions URL” option, and enter the URL of your page* with the instructions on how users can delete their accounts on your site.
  • Select a “Category” for your App.
  • Upload an App icon. It should be 1024×1024.
AD 4nXdkLhnV2KCF9uL4VFSTrcS9WorUY65Zp0O 1RBFx Q6F1121B95GP6 GkPAXQHYVfrtNRyD6YirI28fec15cdfCTr
  • Click the “+ Add platform” button at the bottom of the page
  • Select “Website” as the platform, then press “Next“
AD 4nXf2Ltfu2EiFdjAACowc6TpigLktCT3qYf6jGzJzlR BK jGU kEMhjKgLbDuzl43zpTCnBrfFzPVLG43xDktGY9QSVXgQA53 ZuX8ZagkhRb0AKsy 2r6wOcwALj2HuVfCOBWd?key=4NUHmnuD6hPIpJdQtbcrrA
  • Enter your site URL
AD 4nXerAor7 AMWlPXxoOnO1xi1xXWdxj ZbN4LiHAUJb9dg1zcB jUvIEq9gzUyL19cqV3dPmFpqvKZ6sspjimEJ78TB9igQVBq3Vh9C3JZAHfEbHIjZ HNSBeZ1Mnqsg8F98k0TPi?key=4NUHmnuD6hPIpJdQtbcrrA
  • Click “Save changes“.

By default, your application only has Standard Access for the “public_profile” and “email” permissions, which means that only you can log in with it.

To get Advanced Access you will need to go through the Business Verification, and you can start on the “Verification” tab on the left side.

App Verification #

  • On the left menu, navigate to Review > App Review
  • Click Edit on your current request
AD 4nXcL hBN8xUfN6aUHaa91ie4TFubxSInRpRQv3xNE8RPThLzMBEVjs5s2uMz 8rweVuCcHo9cGfiSyIOLWmqMHI5I Gzo8pydp10SB Z5eoA55be90zb1NED3WFqZ JeOehNP4X?key=4NUHmnuD6hPIpJdQtbcrrA
  • Answer Data handling questions then click Submit
  • Complete the app verification process
  • Provide Verification details
    • How will your app use the Advanced Access Email permission
    • How will your app use the Advanced Access public_profile permission
  • Click Submit for Review.

App Publishing #

  • Once all are done, click on the “App settings” tab, then click “Basic“
  • At the top of the page, you can find your “App ID” and you can see your “App secret” if you click on the Show button. 
  • Paste these keys back to your site to complete the setup for Facebook Social Login.
What are your feelings
Updated on June 17, 2025

Loading...