Instafeed.js: Uncaught Error: Error from Instagram: The access_token provided is invalid.

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

Hi there,

I'm new to this, so I might be doing something wrong.

I followed the instructions at: http://instafeedjs.com, but cannot get anything to show up when I load my test html page in a browser.

I think I successfully created a client on the Instagram site and entered the clientId in the html file, but I keep getting this error:

_Uncaught Error: Error from Instagram: The access_token provided is invalid._

Appreciate any suggestions.

Thanks,

dr-f

duplicate

Most helpful comment

If you are having trouble follow the #345 for more information. In the end all you have to do is follow the following steps:

Requirement

You need to (or get your client to) log into the Instagram account which you want to grab feeds from.
Visit [http://instagram.pixelunion.net/]
Authorise the apps to generate the access token

Sample code

var feed = new Instafeed({
get: 'user',
userId: 'USER_ID',
accessToken: 'ACCESS_TOKEN',
});
feed.run();

USER_ID is simply the first few numbers before the dot in your Access Token

XXXXXXXXXX.12345678....

no client_id needed

All 16 comments

I have this issue too.

You are seeing that error because of new API restrictions that Instagram introduced last November.

Please see #345 for more information.

@stevenschobert somehow, I'm finding this very difficult to understand. #345 mentions that they are able to pull their own feed without the access_token issue.

Should I be able to pull my own feed with a new Instagram ClientId & the same UserId that generated that ClientId?

Thank you so much!

I've got three sites that were working but now get 'Uncaught Error: Error from Instagram: The access_token provided is invalid.' I haven't changed anything and my instagram clients are the same.

I actually had this working, too, and it just recently started giving me that same error.

any update about this error? I was trying to test instafeed.js but I get the same error

Any update on this?

If you are having trouble follow the #345 for more information. In the end all you have to do is follow the following steps:

Requirement

You need to (or get your client to) log into the Instagram account which you want to grab feeds from.
Visit [http://instagram.pixelunion.net/]
Authorise the apps to generate the access token

Sample code

var feed = new Instafeed({
get: 'user',
userId: 'USER_ID',
accessToken: 'ACCESS_TOKEN',
});
feed.run();

USER_ID is simply the first few numbers before the dot in your Access Token

XXXXXXXXXX.12345678....

no client_id needed

Hey @NickEngmann the token has a lifetime ?

I don't believe that the generated token has an explicit lifetime, only that Instagram don't guarantee that it will be valid 'forever' - seems to be more of a disclaimer to avoid liability than anything else. If you're only pulling your own Instagram feed then there seems little else to do. Your 'app' will be in Sandbox mode and you can pull the last 20 of your own posts. If you need to use instafeed for a client, you'll need to add them as a sandbox user and have them accept the Sandbox invitation, then log into Instagram and use pixelunion to generate a token for their own userID.

Thanks @NickEngmann worked for me.

with @NickEngmann strategy it worked for me. Just remember to use the full accessToken generated in the accessToken js field

Great, @NickEngmann it worked for me too..
thanks.

I had trouble with this myself.

I followed these instructions and got it to work.

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

The access token is the token from Step 8. remember to add your client as a sandbox user so you can access their feed.

@jackiboy Thanx for sharing, it was really helpful!

@NickEngmann thanks it worked for me 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joshmeares picture joshmeares  路  9Comments

marshall993 picture marshall993  路  7Comments

stevenschobert picture stevenschobert  路  8Comments

alir picture alir  路  5Comments

heymATIN picture heymATIN  路  4Comments