# 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](https://1747244357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MN83_a4SxUzhnC6dsXE%2Fuploads%2Fgit-blob-aa606320550bbd55dbd84f5b460d2d2fd5a25937%2FInstant%20Tokens%20_%20Your%20Dashboard.png?alt=media)

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.

![](https://1747244357-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN83_a4SxUzhnC6dsXE%2F-MNoXjOfNr24SKsu-6bM%2F-MNoYYX6VzWOfQ9goYfw%2Fimage.png?alt=media\&token=cae4f630-8de1-46ac-9d96-518cb913a22a)

## Widget

![](https://1747244357-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN83_a4SxUzhnC6dsXE%2F-MNoYcwroXLQDplKGitZ%2F-MNoZeCrs1zPNNCQ-DiR%2Fimage.png?alt=media\&token=11330445-586f-4190-965b-d68c2598da47)

## Content

![](https://1747244357-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN83_a4SxUzhnC6dsXE%2F-MNoYcwroXLQDplKGitZ%2F-MNoZne1iTGQLbl16-Ya%2Fimage.png?alt=media\&token=08ab3416-5ab9-4052-9a0d-eb93dd12db1c)

* Image Count

## Settings

![](https://1747244357-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN83_a4SxUzhnC6dsXE%2F-MNoYcwroXLQDplKGitZ%2F-MNoZt_Oz2ROFf48d7Sq%2Fimage.png?alt=media\&token=17a7f252-c4e7-48e2-aa50-4639d80af903)

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