我想找出当前登录的facebook用户的ID。
我使用了这段代码但是我收到了错误。
$facebook = new Facebook_php_sdk(array(
'appId' => '226568227411676',
'secret' => '68bdfeb63d01e8122ed0a46d8fd5dfc1'
));
$rr = $facebook->getAccessToken();
$token = array(
'access_token' => $rr
);
$user_profile = $facebook->api('/me','GET',$token);
对此我收到错误"Uncaught OAuthException: An active access token must be used to query information about the current user"
。