> For the complete documentation index, see [llms.txt](https://mobidonia.gitbook.io/mresto/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mobidonia.gitbook.io/mresto/define-basics/facebook.md).

# Facebook authentication

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

Create new project.

![](/files/-M4LJL6KPbpfcpZFuPgm)

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

![](/files/-M4LJm1qRGCOeos1caFV)

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

![](/files/-M4LJymr633hsaOqGPmb)

Enter the information for your project.

![](/files/-M4LKLU4Y_xojhx6TqXI)

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

![](/files/-M4LL29T9vfxPs2qqZ_t)

![](/files/-M4LKvNdf80B-h04i5H5)

Now enter your website URL.

![](/files/-M4LLd6495EXTkEz7PZw)

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

![](/files/-M58y6_IifIupLdrE3jm)

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 %}

![](/files/-M58yGQ6sLE_bKcMhx1-)

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

![](/files/-M58zE0TCsHfAcxzBkiz)

Copy **App ID** and **App Secret** and add this values in the .env file.<br>

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