Instafeed.js: Instagram API Changes

Created on 19 Oct 2016  路  7Comments  路  Source: stevenschobert/instafeed.js

Used this Git a while back with no issues, however, have you accommodated Instagrams latest API changes to make sure this is still working?

stale

Most helpful comment

It works for me in sandbox mode. But you must now add extra credentials, something like:

var feed = new Instafeed({
  get: 'tagged',
  tagName: 'mytagname',
  clientId: 'xxxxxxxxxxxxxxxxxxxxxx',
  accessToken: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
});
feed.run();

This is for the case where you are just loading content that is in any case public. I've not yet tried the case where the content is private. If you have private content, the client-side method is probably not a good idea anyway.

Getting the credentials is an annoying process, but following this slightly out of date guide should help:

https://github.com/adrianengine/jquery-spectragram/wiki/How-to-get-Instagram-API-access-token-and-fix-your-broken-feed

Notes to the guide above:

  1. You don't need to set up a LAMP as it suggests. It is not really required and because...
  2. Instagram will no longer accept the localhost:3000 as your redirect URI anymore anyway.
  3. Just use your website as the redirect URI and then as the last step it will redirect to your website and you will see something like:
    http://mywebsite.com/#access_token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    You can now just copy your access_token out of the URI.

All 7 comments

My various sites' went down as well. This no longer works bc of the api changes. /users/self/feed isn't an endpoint now. Perhaps public_content or some such thing?
And ten of you only get up to 20 imgs at once at most in sandbox mode.

It works for me in sandbox mode. But you must now add extra credentials, something like:

var feed = new Instafeed({
  get: 'tagged',
  tagName: 'mytagname',
  clientId: 'xxxxxxxxxxxxxxxxxxxxxx',
  accessToken: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
});
feed.run();

This is for the case where you are just loading content that is in any case public. I've not yet tried the case where the content is private. If you have private content, the client-side method is probably not a good idea anyway.

Getting the credentials is an annoying process, but following this slightly out of date guide should help:

https://github.com/adrianengine/jquery-spectragram/wiki/How-to-get-Instagram-API-access-token-and-fix-your-broken-feed

Notes to the guide above:

  1. You don't need to set up a LAMP as it suggests. It is not really required and because...
  2. Instagram will no longer accept the localhost:3000 as your redirect URI anymore anyway.
  3. Just use your website as the redirect URI and then as the last step it will redirect to your website and you will see something like:
    http://mywebsite.com/#access_token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    You can now just copy your access_token out of the URI.

As far as I know in sandbox mode you're limited to the _latest_ 20 user posts (not 20 per request, only 20 latest). Did any one figure out how to deal with that? I want to show all posts of an account I own.

@NewDimension I believe you can get "unlimited" access if you've applied and been approved for an app by the Insta team. That means that you have to have a privacy page, stream (video of what you'll be doing) and I _think_ an https redirect...

Just want to confirm that you now have to have the access token of the user麓s images you want to show.

I have no idea whether one can still show images from multiple accounts. Seems like, no, on first glance.

I have read a lot about it today, I wonder why I have not heard about this before, but the instagram API no longer allows any kind of "one-off" projects.

These are the guidelines for what will be approved:
https://www.instagram.com/developer/authorization/

This issue has been automatically marked as stale because it hasn't had new comments in the last 3 months. It will be closed if no further activity occurs. If you still need assistance with this issue, or believe it shouldn't be closed, please respond with a new comment to let us know.
Thank you all for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

benjamin-hull picture benjamin-hull  路  6Comments

joshmeares picture joshmeares  路  9Comments

belham picture belham  路  3Comments

lansas picture lansas  路  5Comments

alir picture alir  路  5Comments