php - 如何设置特定Facebook页面的manage_pages权限?

标签 php facebook-graph-api

如何将我的应用程序的管理页面权限仅设置为特定页面。现在我的应用程序获得了管理 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/

相关文章:

PHP5.3(作为Apache模块)无法写入/var/www/<project-name>/<document-root>/cache

php - Symfony3.0.3 ChoiceType 通过复选框在实体条目中进行选择并将所选内容保存到 simple_array MySQL

php - 根据第一个文本框的输入,使用 jQuery "auto-fill"第二个文本框

mysql - 如何检索 Facebook 用户个人资料唯一的 url/id

javascript - 无需使用 FB.login() 即可要求 JS SDK 的扩展权限

php - 使用 PHP 将 Curl 检索到的 HTML 字符串转换为 JSON,使用 AJAX 服务

php - 使用 Stripe 和 PHP 处理可变金额(捐赠)

ios - 如何使用iOS SDK获取Facebook页面封面照片

c++ - 从 C++ 应用程序登录 facebook 的正确方法?

facebook - "Get Started"按钮未出现在 FB Messenger bot 的欢迎屏幕中