# Instagram feed

To authorize the site to fetch your media, you'll need to create a Facebook app and add your Instagram user account as a test user.

Follow steps 1 - 5 here: [Instagram Basic Display Api : Get Started](https://developers.facebook.com/docs/instagram-basic-display-api/getting-started)

Now that you have a short-lived token (1hr) you can follow the steps here: [Instagram Basic Display Api : Long-Lived Access Tokens](https://developers.facebook.com/docs/instagram-basic-display-api/guides/long-lived-access-tokens/)

Depending on whether your user is public or private, you now have an access token that lasts 60 or 90 days.

You will have to manually [refresh](https://developers.facebook.com/docs/instagram-basic-display-api/guides/long-lived-access-tokens#refresh-a-long-lived-token) this token before expiry

If this sounds a little too manual for your liking, you can use a service such as [Instant Tokens](https://www.instant-tokens.com/), which handles the refreshing of the long-lived token for you.

If it is your Instagram account, you can follow the first part of [How to display your Instagram feed on a website using Instant Tokens](https://www.instant-tokens.com/pages/guides/post/adding-instagram-feed-to-your-website) or if it is a client's Instagram account you can follow [How to add an Instagram account that you don't have access to](https://www.instant-tokens.com/pages/guides/post/add-a-client-instagram-account)

Both will result in providing you the access token from the dashboard. You can copy a url by clicking here:

![Instant token dashboard](/files/E0kRr7JsmgSuJhn1xTdM)

Or copy the url manually. Visiting that url in a browser window will reveal your token eg

```
var InstagramToken = 'IGQVJYTGFkZAGlNODFPSUhuRGN5T1NlWmF5V3ZA3RTZAkQ1lDcWJ6ZAllENzRwSThLRDZAGd2xOSlBkY0FHNGZAvZAW5mR25BT200azN4V3pOelRrTUVjMTB6NBdSaE45aGtWMjVlOXJIRzZBb';
```

Enter the access token under **Settings > General** along with your username. Then add the Instagram feed widget where you want the feed to appear on your site.

![](/files/-MNoYYX6VzWOfQ9goYfw)

## Widget

![](/files/-MNoZeCrs1zPNNCQ-DiR)

## Content

![](/files/-MNoZne1iTGQLbl16-Ya)

* Image Count

## Settings

![](/files/-MNoZt_Oz2ROFf48d7Sq)

* Link Images
* Link To Instagram Account
* Container Width
* Image Width
* Remove Image Border
* Background Color
* Animate


---

# 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.iglootheme.com/widgets/instagram-feed.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.
