DEV Community

Mohammed Raji
Mohammed Raji

Posted on

How to get Instagram Graph API access token

Instagram will be disabling the final Instagram Legacy API permission (“Basic”) on March 31, 2020. As of March 31, 2020, all Legacy API capabilities will be fulfilled by the Instagram Graph API and the Instagram Basic Display API.

And all Instagram Feed will be disabling, and you must update your widget to work with the new Instagram API.

For that, follow the below steps to get Access Token to use to get an Instagram feed on your website or blog.

Before You Start

You will need:

  • A Facebook Developer Account
  • An Instagram account with media.

Step 1 — Register Application

Go to developers.facebook.com, click My Apps, and create a new app.
Once you have created the app and are in the App Dashboard, navigate to Settings > Basic, scroll to the bottom of the page, and click Add Platform.
Alt Text
Choose Website, add your website’s URL, and save your changes. You can change the platform later if you wish, but for this tutorial, use Website.

Step 2: Configure Instagram Basic Display

Click Products, locate the Instagram product and click Set Up to add it to your app.
Alt Text

Click Basic Display, scroll to the bottom of the page, then click Create New App.
Alt Text

Step 3: Add an Instagram Test User

Navigate to Roles > Roles and scroll down to the Instagram Testers section. Click Add Instagram Testers and enter your Instagram account’s username and send the invitation.
Alt Text

Open a new web browser and go to Instagram and sign in to your Instagram account that you just invited. Navigate to (Profile Icon) > Edit Profile > Apps and Websites > Tester Invites and accept the invitation.
Alt Text

Step 4: Generate Access Token

Alt TextAlt Text
Congratulations! You got the Access Token successfully, and you can use it to get data from Instagram.

The original post on Raji's blog

Top comments (0)