Skip to content

Getting an Instagram User Token

These instructions guide you through getting an access token for the Instagram Feed.

Note

You only need to perform all these steps the first time you are setting up the Instagram Feed. For renewing expired tokens, you only need to perform Step 5.

If you are renewing user tokens that someone else had initially set up, you will need to start from Step 1.

These instructions are adapted from the official documentation on the Facebook Developer documentation. These steps involve the user of the User Token Generator to create a long-lived access token.

Pre-requisites

You must have the following before you can proceed:

  • Facebook account
  • Access to the Instagram account being used for the web part

1. Create an App in the Facebook Developer Portal

Open the Facebook Developer portal: https://developers.facebook.com

Log In, and click "My Apps" from the top right.

My Apps

Click "Create App"

Create App

On the "How are you using your app?" screen, choose "For everything else"

For everything else

Give the app a name, set the contact email and click "Create App ID"

Set App NAme

2. Set up Instagram Basic Display App

On the next screen, click "Setup" next to "Instagram Basic Display"

Instagram Basic Display

At the bottom, click "Create new App"

Create new App

Accept the default App ID, and click Create App

New App ID

On the next screen, that asks for URLs, enter any URL

OAuth Settings

Then hit "Save Changes" at the bottom

Save Changes

Under "User Token Generator", click "Add or Remove Instagram Testers"

Add Instagram Testers

3. Add Instagram Test Accounts

At the bottom section of the next screen, click "Add Instagram Testers"

Add Instagram Testers

In the popup, enter the username of the Instagram account to be used, then hit Submit

Add Tester Account

4. Authorize the Test Account

Log into instagram as the account just selected in the previous step.

Go to Settings -> Apps and Websites -> TESTER INVITES, and click "Accept" next to the invite

Accept Test Invite

5. Generate Token

Back in the Facebook Developer Portal, select "Instagram Basic Display" from the left hand navigation

Instagram Basic Feed

Scroll down to the "User Token Generator" section, and next to the account you added, click "Generate Token"

Generate Token

A popup will display where you'll log into Instagram with the account, then you'll get a consent page. Click "Authorize" on here.

Authorize App

The popup will disappear, and a new popup will display. Check the "I Understand" check box, and your user token will be shown.

Copy this to the clipboard, and paste into the settings on the Instagram Web Part.

User Token Generated