如何设置对特定Facebook页面的manage_pages权限? [英] how to set manage_pages permission to a particular facebook page?

查看:84
本文介绍了如何设置对特定Facebook页面的manage_pages权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何仅将我的应用程序的manage_pages权限设置为特定页面.现在,我的应用程序获得了管理fb用户所有页面的权限.我如何才能限制它并仅获得访问特定页面的权限?

how i can set a manage_pages permission of my application to a particular page only. Now my application get permission to manage all pages of fb user.. How i can restrict this and get permission to access a specific page only ?

我正在使用一种简单的身份验证方法.

I am using one simple authentication method.

$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,因此别无所求.

Unfortunately that's not possible. Very annoying but well.. it's facebook so there's nothing else to expect.

这篇关于如何设置对特定Facebook页面的manage_pages权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆