First, you'll need to register your app on Facebook. Follow these steps:
-
Visit https://developers.facebook.com/apps
-
Click "Create App" and fill out the required information.
-
In "Use cases" select "Authenticate and request data from users with Facebook Login".
-
In the app dashboard, click "Add Product" and find "Facebook Login", then click "Set Up".
-
Select "Web" as your platform.
-
In the "Facebook Login > Settings" from the left sidebar, set "Valid OAuth Redirect URIs" to {{siteUrl}}_oauth/facebook and click "Save Changes".
-
Go to "Settings > Basic" in the left sidebar.
-
Note down your "App ID" and "App Secret" (click "Show" to reveal the App Secret). You'll need these for configuration.