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.
Click "Create App"
On the "How are you using your app?" screen, choose "For everything else"
Give the app a name, set the contact email and click "Create App ID"
2. Set up Instagram Basic Display App¶
On the next screen, click "Setup" next to "Instagram Basic Display"
At the bottom, click "Create new App"
Accept the default App ID, and click Create App
On the next screen, that asks for URLs, enter any URL
Then hit "Save Changes" at the bottom
Under "User Token Generator", click "Add or Remove Instagram Testers"
3. Add Instagram Test Accounts¶
At the bottom section of the next screen, click "Add Instagram Testers"
In the popup, enter the username of the Instagram account to be used, then hit Submit
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
5. Generate Token¶
Back in the Facebook Developer Portal, select "Instagram Basic Display" from the left hand navigation
Scroll down to the "User Token Generator" section, and next to the account you added, click "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.
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.