Visit Facebook Developer
Use existing or create new app - Choose the suggested method

On the next screen enter the app details.
Then in settings, configure the app details and save

On the same page, there is option to add a platform. Add “web”

Enter the link to your site.
Next, go live

After you have verified the business and your app is live, you can add “Facebook Login” as a product.
There is the setting of the Facebook Login → Valid Auth Redirect URIs enter
<https://yoursite.com/login/facebook/redirect>
In the site setting, enter the data from facebook

Facebook Redirect