Instafeed.js: AccessTokens and Sandboxes

Created on 19 Jan 2016  路  11Comments  路  Source: stevenschobert/instafeed.js

Can I suggest flagging the current issue with new access tokens on the main website? As it stands currently the instructions listed at http://instafeedjs.com/ are misleading for anyone trying to nut out why they are getting the following error:

"Uncaught Error: Error from Instagram: The access_token provided is invalid."

Was glad to have eventually seen the discussion on thread #345, but could have saved half a day of digging and failing.

stale

Most helpful comment

All 11 comments

Sorry about that! I haven't had any time to go back and update any documentation. Though I'm not really sure what I would add/change. I don't really have a solid direction to take to deal with the authentication changes yet.

Well I can't be too grumpy because the code works so nicely when you do have a valid access token :)

I found the tools on this site helpful: http://jelled.com/instagram

I am still only in sandbox development mode though but I was able to get my access token by doing what they described in their access token post and everything works locally

@FranciscoG I wasn't able to get my access token using that tutorial...

You really don't want to set scope to anything other than basic, since the token is essentially public (people can see it in your page source code)

All those other scopes are going to write the token access to post likes on your behalf, etc.

Wonderful software. Thank you. But it could really use a one-paragraph preamble at least to the effect that accessToken is now required and one could look eg. at the Jelled site to learn more.

@jddh Yea it does need it. Sorry I've been busy with other projects. I'll update it as soon as I get a chance :)

The method, frankzandres suggested to us was really helpful and now I have my photos without white borders! Huge thanks, man!

frankzandres commented on Jan 29
Done! Using this URL and enabling implicit oAuth under 'Security' tab on your client:
https://instagram.com/oauth/authorize/?client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_ORIGINAL_REDIRECTING_URL&response_type=token&scope=likes+comments+relationships+basic

Is there a way to obtain new access token automatically after old one have expired?

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

benmartineau picture benmartineau  路  6Comments

jpdpueyo picture jpdpueyo  路  6Comments

joshmeares picture joshmeares  路  9Comments

heymATIN picture heymATIN  路  4Comments

heaversm picture heaversm  路  3Comments