如何将我的应用程序的管理页面权限仅设置为特定页面。现在我的应用程序获得了管理 Facebook 用户的所有页面的权限。我如何限制这一点并获得仅访问特定页面的权限?
我正在使用一种简单的身份验证方法。
$app_id = 'xxxxxxxxxxxxx';
$app_secret = 'xxxxxxxxxxxxxxxx';
$my_url = 'http://xxxxxxxxxxx.com/xxxx/facebook?client=params';
$code = $_REQUEST["code"];
//auth user
if(empty($code)) {
$dialog_url = 'https://www.facebook.com/dialog/oauth?client_id='
. $app_id . '&redirect_uri=' . urlencode($my_url).'&scope=offline_access,read_stream,publish_stream,manage_pages';
echo("<script>top.location.href='" . $dialog_url . "'</script>");
}
//get user access_token
$token_url = 'https://graph.facebook.com/oauth/access_token?client_id='
. $app_id . '&redirect_uri=' . urlencode($my_url)
. '&client_secret=' . $app_secret
. '&code=' . $code;
$access_token = file_get_contents($token_url);
am using the above code for authentication. when i try to print the $_REQUEST params, i couldnt find any variable names 'signed_request'. is any other method can we use with the above code..??
最佳答案
不幸的是,这是不可能的。非常烦人,但好吧..这是Facebook,所以没有什么可期待的。
关于php - 如何设置特定Facebook页面的manage_pages权限?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9769664/