Modern applications do rely on social media platforms for login as well as sharing purposes. Allowing Facebook login option while creating an eCommerce mobile app would not only save the users from having lengthy and time taking form fillings but will also provide a secure and convenient site access. To enable Facebook authentication, first, we need to create the Facebook app. Let’s see the step by step process of how to create Facebook App:
In order to create a Facebook app, open Facebook Developer and login to your account. If you are not already enrolled, create a new account. After log-in, select Add new app option from the drop-down menu in the upper right corner.
After clicking Add new app option, a pop window will appear requiring Display name and Contact e-mail details. Enter the details and create App ID.
As you click on Create App ID, Facebook will ask for a security check as shown in the snapshot below:
Now it’s time to set up Facebook login after completing the security check. This is the landing page for the Facebook application to which we will add a Facebook login product. The Facebook Login is just one of the many products that can be added to your Facebook app.
Once the App ID is created, Add a Product webpage opens. Click set up option under Facebook login.
Now, it’s time to choose the type of your application. Select the platform of your application.
Once you have chosen the platform, download the latest Facebook SDK file if you haven’t already installed it.
You’ll find Settings option appearing on the left side of the screen under Facebook Login. Select this option.
Enter the following URL in the redirect URIs field: https://YOUR_AUTH0_DOMAIN/login/callback and save the changes. (Domain name should be correct)
Note: If your domain name is not displayed above, log in to the dashboard to find your tenant name in the top right corner. It is the domain name.
Now, from the left navigation bar, click App review option. After this, on the top of the page,’ Make (Your App Name) App public?’ will appear. Toggle the button to enable it.
Open basic settings from the left navigation bar. On this web page, you can retrieve your App ID and App Secret. Click show to reveal the App Secret (you may be asked to re-enter your Facebook password).
All right! Now is the time for the final step.
In a separate tab or window, go to the Connections > Social and click on the box with the Facebook logo. This will bring up the Facebook connection settings. Copy the App ID and App Secret from the Settings of your app on Facebook:
Select all the attributes and permissions to enable them. Now, click the Applications tab and select the applications you wish to enable for this connection and save them.
I hope this write-up had made the process of creating a Facebook App for the authentication process pretty clear. You can even find more details from here.
Suggested Reading: How to create Google Firebase Key for Push Notification?