Facebook的API:为用户选择页面显示对话框窗口(manage_pages extendend烫发) [英] Facebook api: show dialog window for the user select page (manage_pages extendend perm)

查看:820
本文介绍了Facebook的API:为用户选择页面显示对话框窗口(manage_pages extendend烫发)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想纽约的用户给纽约应用manage_pages扩展pemission但我希望我的用户能够选择,他们的网页,他们给予许可。

I want ny users to give ny app "manage_pages" extended pemission but i want my users to be able to select which of their pages they give permission to.

我有这样的code这是负责autenticate,并获得用户的权限:

I have this code which is responsible to autenticate and get the users permissions:

 $('#btn-connect-facebook').click(function(){
    FB.login(function(response) {
        if (response.session) {
            if (response.perms) {
               -> //new popup window for select which page it gives permissions//
               //window.location = (...) // redirect to php page
            } else {
              alert("You need to grant the required permissions");
            }
        } else {
            alert("There was an error connecting to facebook");
        }
    }, {perms:'manage_pages,publish_stream,read_stream,create_event,offline_access'});
});

我应该怎么想使用户选择他想给权限的页面?
我曾尝试添加enable_profile_selector,但它与我的烫发(对话不要要求所有必要的权限弄乱了。

How should i suppose to make the user choose which page he wants to give permissions?. I have tried add enable_profile_selector but it messes up with my perms (the dialog dont request all the needed permissions.

感谢您的帮助。

推荐答案

用户可以给网页的唯一权限是 publish_stream 许可。所有其他权限的用户权限。例如,他们是不可选/定制的网页。
manage_pages 权限是全有或全无的权限。无论是用户允许(全部)页面给予此权限​​的应用程序访问或无。

The only permission a user can give a page is the publish_stream permission. All other permissions are user permissions. E.g., they are not selectable / customizable for pages. The manage_pages permission is an all or nothing permission. Either the user allows (all) pages access or none by giving this permission to an application.

这篇关于Facebook的API:为用户选择页面显示对话框窗口(manage_pages extendend烫发)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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