---
description: How to enable Google login
---

# Facebook authentication

Visit [Facebook for developers](https://developers.facebook.com/).

Create new project.

![](https://2886676663-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M15aAl8UGIPUvccCl0n%2F-M4LHuELWNbjfqrgkI0W%2F-M4LJL6KPbpfcpZFuPgm%2Fsss.png?alt=media\&token=85cbd8cf-b367-474c-b5c8-1018b0e584ac)

Click **Create App** and fill the information for your project.

![](https://2886676663-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M15aAl8UGIPUvccCl0n%2F-M4LHuELWNbjfqrgkI0W%2F-M4LJm1qRGCOeos1caFV%2Fsss.png?alt=media\&token=71d5d72f-5d31-4fba-abfa-b9cd3312f359)

From the left menu click **Settings** and select **Basic**.

![](https://2886676663-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M15aAl8UGIPUvccCl0n%2F-M4LHuELWNbjfqrgkI0W%2F-M4LJymr633hsaOqGPmb%2Fsss.png?alt=media\&token=af152200-5db2-473f-bb72-41b9bd3943b5)

Enter the information for your project.

![](https://2886676663-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M15aAl8UGIPUvccCl0n%2F-M4LHuELWNbjfqrgkI0W%2F-M4LKLU4Y_xojhx6TqXI%2Fsss.png?alt=media\&token=8d11c55d-2ebc-4ca0-bf45-21a8c378149c)

Next after you finish with this scroll to the bottom, click **Add platform** and select **Website.**

![](https://2886676663-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M15aAl8UGIPUvccCl0n%2F-M4LHuELWNbjfqrgkI0W%2F-M4LL29T9vfxPs2qqZ_t%2Fsss.png?alt=media\&token=fb1c9da8-59f0-491d-8de8-92853dacb9b7)

![](https://2886676663-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M15aAl8UGIPUvccCl0n%2F-M4LHuELWNbjfqrgkI0W%2F-M4LKvNdf80B-h04i5H5%2Fsss.png?alt=media\&token=b43bab19-76a9-4f46-9ba6-a834751af538)

Now enter your website URL.

![](https://2886676663-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M15aAl8UGIPUvccCl0n%2F-M4LHuELWNbjfqrgkI0W%2F-M4LLd6495EXTkEz7PZw%2Fsss.png?alt=media\&token=c2a3a45e-67e6-4289-9934-59b2e43800e5)

Next from the left menu in Product section find **Facebook Login** and under select **Settings**.

![](https://2886676663-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M15aAl8UGIPUvccCl0n%2F-M58wlwm39R5C-w5NW7P%2F-M58y6_IifIupLdrE3jm%2FScreenshot.png?alt=media\&token=20d5c395-80ff-4a67-9f1a-18f98c43bf24)

Find **Valid QAuaht Redirect URIs** and enter your redirect URL.

{% hint style="info" %}
Note: The redirect must be defined like in the picture below.&#x20;
{% endhint %}

![](https://2886676663-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M15aAl8UGIPUvccCl0n%2F-M58wlwm39R5C-w5NW7P%2F-M58yGQ6sLE_bKcMhx1-%2FScreenshot.png?alt=media\&token=8010e1a6-f740-4d3c-af26-bdf86e4a0815)

The last step you need to do is to switch the mode of your app from development to live.

![](https://2886676663-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M15aAl8UGIPUvccCl0n%2F-M58wlwm39R5C-w5NW7P%2F-M58zE0TCsHfAcxzBkiz%2FScreenshot.png?alt=media\&token=e65d913c-e36f-49c0-a393-d94b5f1817bf)

Copy **App ID** and **App Secret** and add this values in the .env file.\


```
FACEBOOK_CLIENT_ID="" //Used for facebook login
FACEBOOK_CLIENT_SECRET="" //Used for facebook login
FACEBOOK_REDIRECT="" //Used for facebook login
```
