In this tutorial, we'll set up Facebook authentication for Conduit.
To get started, you have to create a Facebook Web Application.
Creating a Facebook Web App
Navigate to the Facebook for Developers website and sign in.
We'll be creating an app to be used for our Conduit authentication.
Select Consumer app type.
Fill the application details and finalize your app!
In this step, you will be asked to add products to your app. Select Facebook Login.
You will be asked to select a type for your application. Select WEB
.
Select Facebook Login.
Your app is ready. Make sure you download the relevant file.
Additional information on Facebook Apps.
Setting up the configuration
NOTE
Do not forget to configure the Facebook provider through the Admin Panel.
Open the app which you downloaded and navigate to the config.js
file.
Replace client id and client secret with your actual Facebook app credentials.
Authenticate with Facebook
To begin authenticating with Facebook you request a redirect url with the proper scopes
We'll proceed using Postman!
Open a browser and navigate to the url returned to you from Conduit.
Now the /hook/authentication
route has been triggered.
Once your browser has been redirected, your authentication has been completed.