Showing posts with label Errors and Solutions #49. Show all posts
Showing posts with label Errors and Solutions #49. Show all posts

Wednesday, August 8, 2012

Uncaught Exception: 190: Invalid OAuth access token signature


Error

Uncaught Exception: 190: Invalid OAuth access token signature.


Solution

It was a dump mistake from my side, i generated access token from facebook api 
https://graph.facebook.com/oauth/access_token?

and it seems it returns "access_token=XXXX"

I didn't know that and then i added the returned token as a parameter value in the next API call 


$apiURL = "https://graph.facebook.com/YYYY/posts?access_token=$accessToken;

the the URL ended as 
https://graph.facebook.com/YYYY/posts?access_token=access_token=XXXX

That was the problem for me