Answer the question
In order to leave comments, you need to log in
FaceBook API authorization, how to find out ID?
Comrades, I authorize the user like this:
https://www.facebook.com/v2.10/dialog/oauth?client_id=******&scope=user_friends&redirect_uri='.$uri.'&response_type=code'
$ajson=file_get_contents('https://graph.facebook.com/v2.10/oauth/access_token?client_id=*******&redirect_uri='.$uri.'&client_secret=*****&code='.$_GET['code']);
object(stdClass)#999 (3) {
["access_token"]=>
string(181) "*****"
["token_type"]=>
string(6) "bearer"
["expires_in"]=>
int(5177362)
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question