我正在使用服务器端脚本进行facebook授权,它在Chrome和Mozilla中运行完美,但在Opera和IE中我遇到了错误 .

我在下面的步骤:1 . 我打开弹出窗口www.facebook.com/dialog/oauth?&client_id=&redirect_uri={redirect_uri?} - 很好,然后我得到'代码'并在我的页面上使用它

  • if(isset($ _ GET ['code'])){$ curl = curl_init('_ https://graph.facebook.com/oauth/access_token?client_id= &redirect_uri = &code = '.$_GET[' code ']); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_FRESH_CONNECT, TRUE); $s = curl_exec($curl); curl_close($curl); $access_token = explode(' = ', $s); $tempacc = explode('&',$ access_token [1]); $ access_token = $ tempacc [0];
if($access_token[1] != ''){

    $curl = curl_init('https://graph.facebook.com/debug_token?&input_token='.$access_token.'&access_token='.$access_token);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($curl, CURLOPT_FRESH_CONNECT, TRUE);
    $s = curl_exec($curl);
    curl_close($curl);
    $user = json_decode($s, true);
    print_r($user);
//get error - Array ( [error] => Array ( [message] => (#100) You must provide an app access token or a user access token that is an owner or developer of the app [type] => OAuthException [code] => 100 ) )

}

和Chrome和Mozilla完美相同

此外,我在explorer中检查了探索者中请求的access_token developers.facebook.com/tools/debug/access_token?q=它的工作原理

有任何想法吗?