First, you'll need to register your app on Facebook. Follow these steps:
-
Visit https://developers.facebook.com/apps
-
Click "Add a New App".
-
Add a "Display Name" for your app and click on "Create App ID".
-
Answer the "Security Check" CAPTCHA and click on "Submit".
-
When the new app dashboard loads, click on "Settings" in the left hand menu.
-
From the top of the "Basic" settings page, note down your "App ID" and "App Secret" (you will be asked for them at the bottom of this popup).
-
Click on the "Add Platform" button, and select "Website".
-
In the "Website" section, set the "Site URL" to {{siteUrl}} and click on "Save Changes".
-
Click on "Add Product" in the left hand menu.
-
Hover over "Facebook Login", click on "Set Up".
-
Click on "Facebook Login > Settings" from the left hand menu.
-
Set "Valid OAuth redirect URIs" to {{siteUrl}}_oauth/facebook and click on "Save Changes".
-
Select "App Review" from the left hand menu.
-
Toggle the "Make app public" switch to "Yes".
-
Select a "Category" in the "Make app public" popup and click on "Confirm".