Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Error from Instagram: The access_token provided is invalid. #368

Closed
drfinklestein opened this issue Jan 19, 2016 · 16 comments

Comments

@drfinklestein
Copy link

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

@Ammet
Copy link

Ammet commented Jan 20, 2016

I have this issue too.

@stevenschobert
Copy link
Owner

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

Please see #345 for more information.

@yuchant
Copy link

yuchant commented May 6, 2016

@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!

@willpaige
Copy link

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.

@relish27
Copy link

relish27 commented Jun 22, 2016

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

@madduci
Copy link

madduci commented Jul 9, 2016

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

@notflip
Copy link

notflip commented Jul 12, 2016

Any update on this?

@NickEngmann
Copy link

NickEngmann commented Jul 12, 2016

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

@TheFrost
Copy link

TheFrost commented Jul 14, 2016

Hey @NickEngmann the token has a lifetime ?

@nanoputian
Copy link

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.

@OneSixFour
Copy link

Thanks @NickEngmann worked for me.

@ricardogil
Copy link

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

@damasocurto
Copy link

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

@jackiboy
Copy link

jackiboy commented Jun 22, 2017

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.

@onnoverbeek
Copy link

@jackiboy Thanx for sharing, it was really helpful!

@Natz162
Copy link

Natz162 commented Oct 19, 2018

@NickEngmann thanks it worked for me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests