I
I
Igor808012014-10-26 10:18:41
Facebook
Igor80801, 2014-10-26 10:18:41

Why doesn't the simplest call to the Facebook API work?

Hello,
simple question. With this handling:

$response = file_get_contents("https://graph.facebook.com/me?access_token=xxxxxxxxxxxxxxxxx");

should return something like
{
"error": {
"message": "Invalid OAuth access token.",
"type": "OAuthException",
"code": 190
}
}

And an empty variable is returned. What's wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Menshchikov, 2014-12-08
@theboss9976

Clearly the wrong token.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question