user1050548
user1050548

Reputation: 381

Uncaught OAuthException FaceBook PHP SDK

I copied the whole of the example.php in the Facebook php sdk at the exmaples folder to another php file and i got this error: Fatal error: Uncaught OAuthException: Invalid OAuth access token signature. thrown in C:\wamp\www\facebook-php-sdk-4ea94b9\src\base_facebook.php on line 1039 .

When i comment this line: $naitik = $facebook->api('/naitik'); . Everything seems to be quite fine except this error: Notice: Undefined variable: naitik in C:\wamp\www\facebook-php-sdk-4ea94b9\examples\newExample.php on line 100 . Which is expected. What could be the problem?

Upvotes: 0

Views: 7479

Answers (1)

DMCS
DMCS

Reputation: 31880

You probably are not following the authentication process correctly. Ensure your app id and secret key are correct. Make sure you're running your app from the domain you specified in your app settings on facebook.

Upvotes: 2

Related Questions