The access_token provided is invalid
Permalink Browser Info Environment
Hi!
I tried to start using this add-on, but I keep getting error that access token is invalid.
I created the 'long-lived Instagram User Access Token' from Facebook Developer console, by using the Token Generator (https://developers.facebook.com/docs/instagram-basic-display-api/overview/#user-token-generator). I'm not sure if that was the correct way to do it nowadays?
I also noticed that access token -field was too short (64), so in form.php and db.xml I changed it to be longer for whole acces token to fit in. But I'm still getting "access token invalid" error.
So is this problem related to new Instagram API changes, or am I doing something wrong with access token? Can I still use this add-on for displaying instagram gallery?
I tried to start using this add-on, but I keep getting error that access token is invalid.
I created the 'long-lived Instagram User Access Token' from Facebook Developer console, by using the Token Generator (https://developers.facebook.com/docs/instagram-basic-display-api/overview/#user-token-generator). I'm not sure if that was the correct way to do it nowadays?
I also noticed that access token -field was too short (64), so in form.php and db.xml I changed it to be longer for whole acces token to fit in. But I'm still getting "access token invalid" error.
So is this problem related to new Instagram API changes, or am I doing something wrong with access token? Can I still use this add-on for displaying instagram gallery?
Type: | Discussion |
---|---|
Status: | In Progress |
Thank you for quick response!
I tried to use the blocks "get access token" link before, but it didn't open. I think it didn't open because I had put the block in global area (and I was adding it through dashboard)? Or then there was some other problem. But now I tried again and the authentication window opened. However, when I submit correct username and password, I get this error:
{"error_type": "OAuthException", "code": 400, "error_message": "Invalid scope field(s): public_content"}
Do I have to set some settings in Instagram account? It is public already if that matters.
I tried to use the blocks "get access token" link before, but it didn't open. I think it didn't open because I had put the block in global area (and I was adding it through dashboard)? Or then there was some other problem. But now I tried again and the authentication window opened. However, when I submit correct username and password, I get this error:
{"error_type": "OAuthException", "code": 400, "error_message": "Invalid scope field(s): public_content"}
Do I have to set some settings in Instagram account? It is public already if that matters.
Hi,
This is strange. Any chance you could send me a private message with temporary cms access so that I can take a look? Please do not put it here as it's a public forum that anyone can see. Please send a private message if you decide to do so.
Thanks!
This is strange. Any chance you could send me a private message with temporary cms access so that I can take a look? Please do not put it here as it's a public forum that anyone can see. Please send a private message if you decide to do so.
Thanks!
Hi Chris
I am having the same issues (my site is on 8.5.2). Trying to follow the link to generate a token would close the block without doing anything. This is why I went through facebook developers console to do so. However, this key was invalid.
The block shows on the page, yet I get the error message "Invalid token". Now that I am trying to delete the block from the page, I get "Access denied".
What am I doing wrong?
I am having the same issues (my site is on 8.5.2). Trying to follow the link to generate a token would close the block without doing anything. This is why I went through facebook developers console to do so. However, this key was invalid.
The block shows on the page, yet I get the error message "Invalid token". Now that I am trying to delete the block from the page, I get "Access denied".
What am I doing wrong?
Hi,
Thanks for reaching out. This is usually a simple user error issue but I like to take care of everyone with custom support. Please send me an email or private message and I'll sort you out right away.
Thanks!
Thanks for reaching out. This is usually a simple user error issue but I like to take care of everyone with custom support. Please send me an email or private message and I'll sort you out right away.
Thanks!
I will send you an email.
Thanks for reaching out. I'll be happy to assist you. I'm a former employee of Instagram so I have my own tool for getting your access token. In June I will be rolling out an update that will support the type of token you've just generated. However, for now, please follow the token generator process that my tool currently uses.
To do so, when you add the block, there should be a button to create a token. Please follow this prompt instead.
Does this make sense?