A Facebook App ID and App Secret are unique credentials that identify your app to Facebook’s platform, allowing it to interact with Facebook services like login, sharing, and the Graph API. They are essential for any website or application that wants to integrate with Facebook.
1. Navigate to https://developers.facebook.com/apps/
2.Log in with your Facebook credentials if you are not logged in.
3.Click on the “Create App” button.
4.If presented with a modal, close it or click on the “Create App” button again.
5.Fill the “App name” and “App contact email” fields. The specified app name will appear on your Consent Screen!
6.Click on the “Next” button and choose the “Authenticate and request data from users with Facebook Login” option!
7.Optional: choose a “Business portfolio” if you would like to. If you didn’t choose a “Business portfolio” at this point, you will need to select it in step 26, before you start the “Verification”!
8.Click on the “Next” button, read the documents listed below the requirements, then click “Next” again.
9.Check the App details in the “Overview”, and then press the “Go to dashboard” button.
10.Complete the security check if you are prompted with the modal.
11.You will end up in the “Dashboard”. If you see a modal window appear, close it or click on “Go to dashboard”.
12.Click on the “Use cases” tab on the left side and then click on the “Customize” button that appears next to the “Authenticate and request data from users with Facebook Login” item.
13.Below the “Permissions” section, find the “email” permission and click on the “Add” button.
14.Press the “Settings” option that you can find below the “Facebook Login” section.
15.Add the following URL to the “Valid OAuth redirect URIs” field:
https://example.com/wp-login.php?loginSocial=facebook
16.Click on the “Save changes” button. (If you receive a blank page after you pressed the “Save changes” button, you might need to refresh the page.)
17.On the left side in the side bar, click on the gear icon ( “App settings” ) then click “Basic”.
18.Enter your domain name to the “App Domains” field, probably: example.com
19.Fill up 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.
20.Fill up the “Terms of Service URL” field. Provide a publicly available terms and conditions page link, where you describe the rules and guidelines that your visitors must agree to.
21.At “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.
To comply with GDPR, you should already offer possibility to delete accounts on your site, either by the user or by the admin:
If each user has an option to delete the account: the URL should point to a guide showing the way users can delete their accounts.
If the accounts are deleted by an admin: then you should have a section – usually in the Privacy Policy – with the contact details, where users can send their account erasure requests. In this case the URL should point to this section of the document.
22.Select a “Category”, an “App Icon”.
23.Scroll down to the bottom of the page, press the “+ Add platform” button.
24.Select “Website” platform, then press “Next” and enter the following URL into the “Website > Site URL” field: https://example.com
25.Press the “Save changes” button.
26.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 trough the Business Verification, that you can start on the “Review > Verification” tab on the left side.
27.After a successful Business Verification, you need to go to the “Review > App Review” tab, and open the review request with the “Edit” button. Fill in any missing fields here, then submit the form for review, and wait until it is approved by Meta, which may take several days.
28.Once your verification is completed, click on the “Publish” tab.
29.To obtain access to permissions, you must answer some questions about your data handling practices, click on the “Go to data handling questions” link, that you find next to “Data handling questions” and answer questions about the data handling.
30.Currently your app is in Development Mode which also means that people outside of your business can not use it. To change this, click on the “Publish” option on the left side again, and publish your app by clicking on the blue “Publish” button at the bottom right corner.
31.After everything is done, click on the “App settings” tab, then click “Basic”.
32.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. These will be needed in plugin’s settings.