# Generate Access Token from Facebook

Check out the detailed video on [**How to Generate Instagram Access Token?**](https://youtu.be/JAUYe1A2dp0?si=18pdGiJEJDMEWA7d)

**Step 1:** Get a **Facebook & Instagram Business Account**.

**Step 2:** **Verify** Your Business Account.

**Step 3:** Create a **Facebook Page** and connect it with the Instagram account for which you want to generate a token.

**Step 4:** Create a **Facebook App**. For that, visit

<https://developers.facebook.com/apps>&#x20;

**Step 5:** Now, create an app. For that, click on the **Create App** button.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FBRXrO2bxRuJTSJLfjeNZ%2F5_create%20app.png?alt=media&#x26;token=362409ce-b1bd-405f-b861-03ff954ae36b" alt=""><figcaption></figcaption></figure>

Step 6: Enter the **App name**, **App contact email**, and click on **Next**.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FUU23G4ZTENI4VFZygLKr%2F6_App%20name%20and%20App%20contact%20email.png?alt=media&#x26;token=3e32a05f-5d58-44e3-8e90-2128b779cf97" alt=""><figcaption></figcaption></figure>

**Step 7:** Select **Use case** and click on **Next**.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FCguYCfMMefUTCokUgX5h%2F7_Use%20case.png?alt=media&#x26;token=71aa9e58-e06d-48d6-91ec-4c01b7a2ee00" alt=""><figcaption></figcaption></figure>

**Step 8:** Select **App type** and click on **Next**.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FGHU0KDhYqSxRdSFBqh0B%2F8_App%20type.png?alt=media&#x26;token=2d4ec1d1-ed26-47d2-bf9f-77141dd33224" alt=""><figcaption></figcaption></figure>

**Step 9:** Finally, review app details and click on **Create app**.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FBBKoataVaKSCZQCIpHSw%2F9_Create%20App.png?alt=media&#x26;token=67e18bb1-cfda-4a94-9180-174bccdc2f42" alt=""><figcaption></figcaption></figure>

**Step 10:** Now, go to **App settings > Basic** and fill basic App details.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FeKOSsGfwCcdmBIVXS7Ua%2F10_basic_app_details.png?alt=media&#x26;token=04257a21-a9b3-4c30-a475-eaa9c48d126a" alt=""><figcaption></figcaption></figure>

**Step 11:** Fill in Website details and **Save changes**.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FvgQgwR5kDV7ceOMUCuPP%2F11_basic_app_details%202.png?alt=media&#x26;token=d6fb1756-af51-4cc0-ab73-cec30438bda3" alt=""><figcaption></figcaption></figure>

**Step 12:** Go to your **Facebook Business Account**. Navigate to **Users > System users** and **Add** a user.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FWmTaITINvr3uT4FCi1lE%2F12_Users_System_users_Add.png?alt=media&#x26;token=e697609f-08d7-43e1-a123-cf78fe7002e6" alt=""><figcaption></figcaption></figure>

**Step 13:** Enter the **System user name** and assign the **Admin role**. Then click on the **Create system user** button. The system user is created successfully.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FmC0tz3poiuXju5ZMGAwJ%2F13_Create%20Admin%20System%20User.png?alt=media&#x26;token=b6b66f15-0c5b-4e76-8251-f5cccc9ef392" alt=""><figcaption></figcaption></figure>

**Step 14:** Navigate to **Accounts > Apps** and **Add** an app.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FUt4dqDKScdbTTzZcaYnZ%2F14_Accounts_Apps_Add.png?alt=media&#x26;token=7b991839-abcf-4a06-ab42-8da01510cc09" alt=""><figcaption></figcaption></figure>

**Step 15:** Choose the **Connect an app ID** option.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2Fh89p0g1wBnhbyqMgaYTT%2F15_Connect%20app%20ID.png?alt=media&#x26;token=382fe412-3dfb-4d63-92b0-fa5488dd66e7" alt=""><figcaption></figcaption></figure>

**Step 16:** Enter the **App ID** and click on the **Add app** button. The app has been added successfully.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FxokzJPrROemenQWDzZg8%2F16_App%20ID_Add%20app.png?alt=media&#x26;token=3c4c75f4-2b8b-49cc-8761-8c6f35ded321" alt=""><figcaption></figcaption></figure>

**Step 17:** Navigate to **Accounts > Pages** and **Add** a page.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2F196YLHREcjx4tTMA2v1D%2F17_Accounts_Pages_Add.png?alt=media&#x26;token=2f1c6591-d801-435e-88fc-3aefd4d1d923" alt=""><figcaption></figcaption></figure>

**Step 18:** Select the **Facebook page** and click on **Next**.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2F7ynAX7adtbxZS0crwF6Y%2F18_Select%20page.png?alt=media&#x26;token=dd71930f-a89c-4db9-b8a8-bf68f25abfae" alt=""><figcaption></figcaption></figure>

**Step 19:** Give **Full control** to the Facebook page and click on **Confirm**. The page is added successfully.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FAdkL4AYuQuXzN5O5gXtT%2F19_Full%20control%20to%20page.png?alt=media&#x26;token=bafb76cc-92ab-4a6b-9fa3-4fe917e4d6fa" alt=""><figcaption></figcaption></figure>

**Step 20:** Click on the **3 dots** at the right corner and select **Assign assets**.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FUOGAJkKNxXAmRNh2fdFF%2F20_Assign%20assets.png?alt=media&#x26;token=7bc079ee-6991-4061-b8d5-6595eac05df7" alt=""><figcaption></figcaption></figure>

**Step 21:** Add page to the asset.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2F7Xdk5Lha6Sspiqo5bL6I%2F21_Add_page_to_asset.png?alt=media&#x26;token=c8e91066-b068-41ec-b0fb-e904eedffa13" alt=""><figcaption></figcaption></figure>

**Step 22:** Add account to the asset.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FQrsv4KrGDGtaWuazbOdM%2F22_add_account_to_asset.png?alt=media&#x26;token=c46bbe3d-dd70-4cb4-b29e-1c84eb1e83a9" alt=""><figcaption></figcaption></figure>

**Step 23:** Add app to the assets and then click on the **Assign assets** button. The assets are successfully added to the user.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FCKEUnTYj83OlrguaX48k%2F23_add_app_to_asset_assign_assets.png?alt=media&#x26;token=b05e8a05-ce03-46b2-88ff-61216173aa92" alt=""><figcaption></figcaption></figure>

**Step 24:** Click on **Generate token**.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FK94L86IunDINw0D2L8W4%2F24_generate_token.png?alt=media&#x26;token=2b0db64c-c29f-495a-bbff-9e7acd85c70b" alt=""><figcaption></figcaption></figure>

**Step 25: Select app** to generate a token for and click on the **Next** button.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2F1ppfwE43TwdQpOBAbxcK%2F25_select_app.png?alt=media&#x26;token=1b94610f-d742-4e7e-95ef-bb93d41f6b92" alt=""><figcaption></figcaption></figure>

**Step 26:** **Set expiration** for the token and click on the **Next** button.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FNwEJFlo1aT2fhL8MGSLz%2F26_set_expiration.png?alt=media&#x26;token=a67b6b2c-f593-42a6-8afc-8aa135ead5f0" alt=""><figcaption></figcaption></figure>

**Step 27:** **Assign permission** that you want to grant to the app and click on the **Generate token** button.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FzQ2X5a6W6Z9fC71JZtk7%2F27_assign_permissions.png?alt=media&#x26;token=900e2869-3f74-42f3-b0aa-af2803470a95" alt=""><figcaption></figcaption></figure>

**Step 28:** Token is generated successfully. **Copy the Token** and add it to the Instagram extension configuration to authenticate the app.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FDnz3uiLlf7RSBkoVtjGM%2F28_token_generated.png?alt=media&#x26;token=39d64637-0406-4291-bcec-fc89fd23495c" alt=""><figcaption></figcaption></figure>
