Prerequisites
You will need:
- A Facebook Developer Account
- A public Instagram account
- A public website that you own
Step 1: Create a Facebook App
Once you have created the app and are in the App Dashboard, navigate to Settings > Basic, scroll to the bottom of page, and click Add Platform.
Choose Website, add your website’s URL, and save your changes.
On the left menu > Products, click Add Product. Locate the Instagram Basic Display product, and click Set Up to add it to your app.
Scroll to the bottom of the page and click Create New App.
Fill in these information:
- Instagram Display Name: Enter a name for your app
- Valid OAuth Redirect URI: Enter your website's URL
- Deauthorize Callback URL: Enter your website's URL
- Data Deletion Request URL: Enter your website's URL
Then click Save Changes.
Scroll down to User Token Generator section and click Add Instagram Testers. You will be redirected to the Roles page.
Scroll down to Instagram Testers section. Click Add Instagram Testers.
Enter your Instagram account's username. Then click Submit.
Open a new web browser and go to www.instagram.com and sign into your Instagram account that you just invited. Navigate to (Profile Icon) > Settings > Apps and Websites > Tester Invites and accept the invitation.
Go back to Instagram Basic Display settings page. Now you'll see your Instagram account in the list of Instagram Test Users. Click Generate Token.
A new window will pop out requesting your app access to your Instagram profile data. Click Allow.
Done! An Instagram Access Token is generated.