# Set up an app in Facebook for Developers

## Guiding Video

{% embed url="<https://youtu.be/rVN_Yj7KDWk?t=387>" %}

## Step 1: Login / Register Facebook for Developers

Truy cập vào đường link:[ ](https://developers.facebook.com/apps/)[Facebook for Developers](https://developers.facebook.com/)

Click `Get Started` on the top left of the screen.

![](/files/-McTDr-nzvemovBMFAib)

**Facebook for Developers** will use your Facebook account to log in to. Choose your Facebook account, and then click `Continue`.

![](/files/-McTFMJ2J3IwL420QGiH)

After that, filling in your email address![sau đó](https://lh3.googleusercontent.com/3_l97rr0GvhSP2XV5OoCkV2ZDTIisAOczrSdzNCBxhIKWrjXjHucxNwocghoUa39gw=w36-h36)`Confirm Email`

![](/files/-McTG1QVQ3KzoCfNebNN)

Choose one of the options that suits you best![sau đó](https://lh3.googleusercontent.com/3_l97rr0GvhSP2XV5OoCkV2ZDTIisAOczrSdzNCBxhIKWrjXjHucxNwocghoUa39gw=w36-h36)`Confirm Registation`

![](/files/-McTGdfABxaM9-kf0DK_)

## Step 2: Create an app in Facebook for Developers

&#x20;Click `Create App` .

![](/files/-McTHq6kjg7D-BHNN0I7)

Choose `Consumer`![sau đó](https://lh3.googleusercontent.com/3_l97rr0GvhSP2XV5OoCkV2ZDTIisAOczrSdzNCBxhIKWrjXjHucxNwocghoUa39gw=w36-h36)`Continue`

![](/files/-McTIcjke-Ih3g2p0-cS)

Fill in the form![sau đó](https://lh3.googleusercontent.com/3_l97rr0GvhSP2XV5OoCkV2ZDTIisAOczrSdzNCBxhIKWrjXjHucxNwocghoUa39gw=w36-h36)`Create App`

{% hint style="info" %}
For **Business Manager account**, this form is not required.&#x20;
{% endhint %}

![](/files/-McTJplAAb1g8M25PRuq)

The website will ask you to type in your Facebook password![sau đó](https://lh3.googleusercontent.com/3_l97rr0GvhSP2XV5OoCkV2ZDTIisAOczrSdzNCBxhIKWrjXjHucxNwocghoUa39gw=w36-h36)`Submit`

## Step 3: Set up Facebook Login

Click `Set Up` of the **Facebook Login** card.

![](/files/-McTOyUsmH84I08g8a06)

On the vertical menu of your left hand side, go to **Facebook Login** section and click `Quickstart`. You will see four options (iOS, Android, Web, and Other). For your website, please click the **Web** option.

![](/files/-McTPiP3S7VDv7_bFeSQ)

Then, Facebook will ask you to fill in your **Site URL**, which is your website domain, then click `Save`.

![](/files/-McTQbYfZpWkKQ58a_Vp)

Then go to `Settings` which is right above the `Quickstart` button.

![](/files/-McTSrdd_LLSP7S8iV6N)

Go to the **Client OAuth Setting** section and fill in the **Valid OAuth Redirect URLs** field in this format:&#x20;

```
http://your-website/_oauth/facebook
```

Change `your-website` to your website domain, then click `Save Changes`.

## Step 4: Activate your app

Turn on the `In development` switch button like below.

![](/files/-McTUmExPpKy1hQ5VzDm)

Click`Update`.

![](/files/-McTVMNk6QSEwFdjR7wO)

Fill in the following form and click `Save Changes`

* App Domains: your website domain
* Privacy Policy URL: the link to the Privacy Policy page of your website
* Terms of Service URL: the link to the Terms of Service page of your website

![](/files/-McTZ5aqUYp5InKUuAh7)

Turn on the `In development` switch button again. You will see a pop-up, then click `Switch Mode`.&#x20;

![](/files/-McT_XlKHyzPaD8Qtixo)

Now you can access your `App ID` and `App Secret`.

![](/files/-McTbNCiB14B5c7U_whq)

Follow [this guide](/english/system-setting/authentication/sign-in-via-social-media.md#allow-sign-in-with-facebook) to finish set up **Login with Facebook**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hoola.vn/english/system-setting/authentication/sign-in-via-social-media/set-up-an-app-in-facebook-for-developers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
