# How to get Instagram Access Token

This tutorial from EtsSoft company (original link: <https://insta-app.etssoft.net/docs/how-to-get-instagram-access-token>). They are a **technology solution company** founded by programmers and designers who are smart, devoted, creative and experienced in the field of eCommerce. Founded in 2013, they are attempting to become **one of the best companies to provide eCommerce solutions for Prestashop, Shopify and WordPress users**. You can check their service at <https://etssoft.net/> and thanks EtsSoft for allowing us use this article.

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 **Instagram Shopping Gallery Pro** app back-end configuration page.

You will need:

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

You can watch the instruction video here:

{% embed url="<https://www.youtube.com/watch?v=rWUcb8jXgVA&feature=emb_title>" %}

#### **Step 1**:

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

![](https://insta-app.etssoft.net/storage/posts/March2020/Screenshot_54.png)

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**.

![](/files/-MLQfcjeZdB12fhnfQSR)

Choose **Website**, add your website’s URL, and save your changes.&#x20;

![](/files/-MLQf0CUmsZxeIPO09wO)

![](/files/-MLQf7_PTu0xB5z9xYHP)

#### **Step 2**: Configure Instagram Basic Display <a href="#step-2--configure-instagram-basic-display" id="step-2--configure-instagram-basic-display"></a>

Click **Products**, locate the **Instagram** product, and click **Set Up** to add it to your app.![](https://scontent.fhan5-6.fna.fbcdn.net/v/t39.2365-6/72282554_751755955273916_2109774612530200576_n.png?_nc_cat=107&_nc_sid=ad8a9d&_nc_oc=AQmFHInf15p2CHtWrQV6u4tckx6uh5SjGn7Ycy44tbgRgD3qbi5EIXHD_rS5F_h9Ykw&_nc_ht=scontent.fhan5-6.fna\&oh=7cfccfdafba6b148cbc5d8e5f24f23f8\&oe=5E99F9A1)

Click **Basic Display**, scroll to the bottom of the page, then click **Create New App**.![](https://scontent.fhan5-2.fna.fbcdn.net/v/t39.2365-6/72133609_2372753246311211_7775884782981873664_n.png?_nc_cat=102&_nc_sid=ad8a9d&_nc_oc=AQkjmGeJyMmpVS-dQvBnbTpjHyE_qEaPZiGmsXm3MGfsoFd7MPrrvGWEZlb7WmCpGiw&_nc_ht=scontent.fhan5-2.fna\&oh=ddf29b84583ee4ec572338790de60b6b\&oe=5E85B3C6)

In the form that appears, complete each section using the guidelines below.

***Display Name***

Enter the name of the Facebook app you just created.

![](https://insta-app.etssoft.net/storage/posts/March2020/Screenshot_56.png)

***Valid OAuth Redirect URIs***

Enter your website’s URL.

For example: `https://ets-instagram.myshopify.com/auth/`

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://insta-app.etssoft.net/storage/posts/March2020/Screenshot_571.png)

***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 <a href="#step-3--add-an-instagram-test-user" id="step-3--add-an-instagram-test-user"></a>

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.

![](/files/-MLQexdYoLTJWYO6CgHZ)

![](/files/-MLQfj0bSWs9sSd0cpal)

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.

![](/files/-MLQfmZhiT0daJHsH0vd)

![](/files/-MLQfq_XqFu7TfN-83qf)

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

#### &#x20;

#### Step 4: Generate Access Token for Test User <a href="#step-4--authenticate-the-test-user" id="step-4--authenticate-the-test-user"></a>

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

![](https://insta-app.etssoft.net/storage/posts/March2020/Screenshot_66.png)

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

![](https://insta-app.etssoft.net/storage/posts/March2020/Screenshot_60.png)

![](https://insta-app.etssoft.net/storage/posts/March2020/Screenshot_65.png)

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

![](https://insta-app.etssoft.net/storage/posts/March2020/Screenshot_67.png)

Paste your Instagram Access Token on **Instagram Shopping Gallery** app configuration page.

#### 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.


---

# 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://kitisummus.gitbook.io/molla/general/how-to-get-instagram-access-token.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.
