# How to get Instagram Access Token

Starting from **March 2020**, Facebook requires users to create a Facebook app with Instagram Basic Display API to get a long-live Instagram Access Token. Follow our instructions on this section to get your own Instagram Access Token and paste it back on the **Appearance -> Theme Options -> Additional Code -> Instagram Token**

**You will need:**

* A Facebook account.
* An Instagram account with media.

### **Step 1: Create a new App**

\
Go to [developers.facebook.com](https://developers.facebook.com/), click **My Apps**, and create a new app.

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2F6aJm0QdoTCTV533XK2X8%2Fig-1.png?alt=media\&token=fdd2eee4-6138-4800-8a58-7dc56992c01f)

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2FXAaVKI6AghMZ9ky0pS4K%2Fig-step2.png?alt=media\&token=734c543c-b76d-4478-91fb-971fa90cf577)

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2FEBd9vIowMBzU8EupUJqr%2Fig-step3.png?alt=media\&token=a6504368-061f-4baa-be8c-fd21b33d1628)

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2FUnfBFtfxLnmty2We5whb%2Fig-step4.png?alt=media\&token=7691b3e2-c666-41e9-ba25-3011407e82cd)

Once you have created the app and are in the App Dashboard, navigate to **Settings** > **Basic**, scroll the bottom of the page, and click **Add Platform**.

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2FwPRRQIA7uAO1lM5gfW8F%2FScreenshot_58.png?alt=media\&token=70ce7c1c-8cab-472a-9d28-0bebe0445427)

Choose **Website**, add your website’s URL, and save your changes.

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2F8ND4ky0wysg3y38g7AsP%2FScreenshot_55.png?alt=media\&token=95c49feb-4246-4cc9-918d-48f50b9534bb)

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2FdNNTyNQyO4ZHCrz91mX3%2FScreenshot_511.png?alt=media\&token=e4cb291e-fdb0-49af-98e6-dbb807aa4ca2)

### **Step 2: Configure Instagram Basic Display**

Click **Products**, locate the **Instagram Basic Display** product, and click **Set Up** to add it to your app.

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2F8yRC3MSYJhYzwAdz4LFU%2Fig-step5.png?alt=media\&token=cc59db11-251a-4d8e-b240-84f58c5c6ddb)

Click **Basic Display**, scroll to the bottom of the page, then click **Create New App**.

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2FSFPmf8UWdlRZmlZbCvgB%2Fig-step6.png?alt=media\&token=1d383562-b310-417f-8838-65d743fc0c1e)

In the form that appears, complete each section using the guidelines below.\
\&#xNAN;***Display Name***\
Enter the name of the Facebook app you just created.

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2FyetoXNNVpMsxvOcb5NEY%2FScreenshot-at-Jul-02-10-42-21.png?alt=media\&token=2c49985b-f8de-4c6b-9ed7-b7b02c2a34e3)

***Valid OAuth Redirect URIs***

Enter your website’s URL.

For example: <https://la-studioweb.com/>

After you enter a URL, save your changes and check the URL again; Instagram may have appended a trailing forward slash depending on your URL structure.

***Deauthorize Callback URL***

Enter your website’s URL again.

***Data Deletion Request Callback URL***

Enter your website’s URL once again.

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2FHrVwczzZxWj6yAu0WWpL%2FScreenshot-at-Jul-02-10-44-29.png?alt=media\&token=f1a072fe-ca45-4daf-bc71-7da77a0b4658)

***App Review***

Skip this section for now since you will not be switching the app to **Live Mode** during the tutorial.

Save your changes before heading to the next step.

### **Step 3: Add an Instagram Test User**

Navigate to **Roles** > **Roles** and scroll down to the Instagram Testers section. Click **Add Instagram Testers** and enter your Instagram account’s username and send the invitation.

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2FWfTOElavBa15YSiZiyNU%2Fig-step7.png?alt=media\&token=bf1b799b-8883-4253-9f13-ee9b7e09db75)

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2Fgwlw2y9iwmap9rkYUiaA%2FScreenshot_59.png?alt=media\&token=67a56eb0-f936-45b3-9733-59a83ff2cdd0)

Open a new web browser and go to [www.instagram.com](https://l.facebook.com/l.php?u=https%3A%2F%2Fwww.instagram.com%2F\&h=AT3IpFSLdh5MMecvubFoSiffDnOhipinduFlVQEukLk8fH553_YldBY9hlCWjLXyqVPYOBc6r4J7QjpF-q9Ys1RUW64vHJQlFdq8WjVDluEBjJf-rh-qsD1QNxXUiZuthm82NTKAIZjyCFL24-lQHw) and sign in to your Instagram account that you just invited. Navigate to **(Profile Icon)** > Click on the **cogwheel icon next to “Edit Profile” button** > **Apps and Websites** > **Tester Invites** and accept the invitation.

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2FaMShrrY6jaH8sG44BSYm%2FScreenshot-at-Jul-02-10-48-01.png?alt=media\&token=c6652641-a733-4435-a72e-3382e5095ff8)

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2FUezBXkr9O5Gp36jETtXv%2FScreenshot-at-Jul-02-10-49-01.png?alt=media\&token=807702b0-535f-453f-ac85-043077e867d7)

Your Instagram account is now eligible to be accessed by your Facebook app while it is in **Development Mode**.

### **Step 4: Generate Access Token for Test User**

Navigate to **App Dashboard** > **Products** > **Instagram** > **Basic Display** page and scroll down to **User Token Generator** section. Click on “**Generate Token**” button.

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2F40XR3BX4dZ76DJQ7vLhe%2FScreenshot-at-Jul-02-10-50-33.png?alt=media\&token=08b25978-c02e-4106-9ede-fe040696e435)

Log in with your Instagram account. Allow the app to access your Instagram account data.

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2Fvv4Fg96eb8riHsSg5CRk%2FScreenshot-at-Jul-02-10-51-23.png?alt=media\&token=f0114314-314e-43de-9399-076417adeb49)

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2FKbBQ2vRLJKELjf1emflx%2FScreenshot-at-Jul-02-10-51-59.png?alt=media\&token=cbee9428-ffe9-488f-b10d-ee9cbdd8e3f4)

Click on “I understand” checkbox then copy your Instagram Access Token.

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2FNtRPmmpu9BTJ5hD0g11d%2FScreenshot-at-Jul-02-10-52-35.png?alt=media\&token=61b2d712-b183-4865-ae56-b4d8d2127717)

Paste your Instagram Access Token on **Theme Options -> Integrations -> Instagram Token**

![](https://70082597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWdIrZkRXI0Ovu8yuD8B7%2Fuploads%2Fxm0vWw4vCm3X5CGq9wti%2FScreenshot%20at%20Aug%2010%2017-22-59.png?alt=media\&token=680abd9f-eadd-4a22-98fc-a2593ad4373b)

{% hint style="info" %}
**Note:** Long-lived tokens are valid for 60 days and our app will refresh your token automatically before they expiring. You will not have to manually regenerate your access token.
{% endhint %}
