messenger-bot-tutorial
messenger-bot-tutorial copied to clipboard
Getting error in Step 4. (Curl) Invalid OAuth
Getting this error message when I am trying to use the CURL command
{"error":{"message":"Invalid OAuth access token.","type":"OAuthException","code":190,"fbtrace_id":"DPBNtgEihPS"}}
I get this error as well.
I get it too
Same here anyone found the problem?
Update: I seemed to have gotten around it with trial and error here is what I did.
First make sure you type =page_access_token not =<page_access_token> I also added a namespace and app domain and website URL in the basic setting section of the app.
I'm not certain which of these solved the problem but I'd guess at dropping the <> syntax.
Hope that helps.
The problem is with the curl's syntax.
Instead of (<> vs {})
curl -X POST "https://graph.facebook.com/v2.7/me/subscribed_apps?access_token=
The v2.7 or v2.6 makes no difference - it works with both.
Hope it helps.
In v2.8 you should use only this: curl -X POST "https://graph.facebook.com/v2.7/me/subscribed_apps?access_token="
just get rid of those angle brackets around the token...and you will be just fine for example
curl -X POST "https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=EAAJ22uv7dO8BAEwvZApIIfLyhmgRjE00a3XHiZAnm3ZBqfzJkMX4GoCjnXCbI5IOBINLP5443v8szAYcvcQSbZB8B2WAbxMGIX5mU"
I have had this issue as well and solved it but now there is another typer of error : 2500. The message is "An active access token must be used to query information about the current user". I am confused, any help ?
@LuisBlanche Try to generate token again.