How to setup the new Instagram API

The Instagram API has recently been updated with the following message:

We do not approve the public_content permission for one-off projects such as displaying hashtag based content on your website. As alternative solution, you can show your own Instagram content, or find a company that offers this type of service (content discover, moderation, and display).

This practically means that we have to take a few extra steps if we want to show public content.. that is content/posts from accounts that are not ours, in our app.

First off all, we need an API token like we always do:

Creating an API token

Create an Instagram application here, and enter the data about your app (for redirect URI use something like http://your-redirect-uri?code=CODE). After your app is created, make sure that Disable implicit OAuth is checked and that you’ve added yourself as a Sandbox user.

Next visit the following url in your browser:

https://www.instagram.com/oauth/authorize?client_id=YOUR_CLIENT&redirect_uri=YOUR_REDIRECT_URI&scope=basic+likes+comments+relationships+public_content&response_type=token

Where YOUR_CLIENT and YOUR_REDIRECT are your CLIENT_ID and your REDIRECT_URI (without parameters)

Now you should see a login screen, login and approve (as the sandbox user). It should redirect to YOUR_REDIRECT_URI#access_token=SOMETOKEN

You now have your access token for viewing your own feed.

If you would like to show additional feeds of other accounts to which you do have access (e.g. your friends feeds), you can invite them as Sandbox users to your app (make sure they accept this invitation). You can then use this API token to show posts from their feed as well.

If you would like to show (additional) feeds of other accounts to which you do not have access (e.g. of a news site), you should submit your app to Instagram (or ‘go live’) with at least the public_content and basic permission. You can best select “My app allows people to login with Instagram and share their own content.” to be submitted.

Finding your user ID

You can best use this site to find your user ID.

Related articles

iHomeFinder Optima Express WordPress MLS IDX Plugin Shortcodes

Listing Gallery Shortcode Reference The following shortcode examples can be...

Where do I put Google Analytics tracking code?

A common question that I'm asked by clients is... Where...

Case Studies

Real Estate Listings

A clothing brand wanted to launch a new e-commerce website that would allow customers to browse and purchase their products online. We developed a...

Personal Trainer Shop

A clothing brand wanted to launch a new e-commerce website that would allow customers to browse and purchase their products online. We developed a...

Compass Music Platform

A clothing brand wanted to launch a new e-commerce website that would allow customers to browse and purchase their products online. We developed a...