Implementing Facebook login
If you have tried surfing recent web apps, you will definitely be able to recognize the famous Sign in with Facebook. It is a really lovely, easy, and fast way to authenticate a user nowadays. We can bring all the basic metadata such as full name, image, email address, and basic information directly from the Facebook servers.
In this recipe, we're going to see how we can implement the Facebook login functionality in our application.
Getting ready
Before starting, we'll need to create a Facebook app. To do so, please head directly to the Facebook Developer platform at https://developers.facebook.com. You will see a dashboard, as shown in the following screenshot:

Figure 4: Facebook Developer platform
If you hover over My Apps
, you will see a list of all your current Facebook apps. For our requirements, we'll create a new one. To do that, simply click the Add a New App
option, as shown in the following screenshot:

Figure 5: Adding a new Facebook application
Next, we have...