获取详细的用户管理的页面在facebook使用fb.api方法

Get details of user administered pages in facebook using fb.api method

本文关键字:使用 facebook fb api 方法 用户 管理 获取      更新时间:2023-09-26
        function Pages()
        {
            FB.api(
'/me/accounts',
'GET',
{ fields: 'name,about' },
function(response) {        
    document.getElementById('showPages').innerHTML = response.name + ' ' + response.about ; 
},{ scope: 'manage_pages' }
);
     }

我使用这个函数来获取已登录到我的应用程序的用户所管理的页面的名称和信息。

我得到的输出是"undefined"

成功了。GET必须被删除…

尝试FB.api('/me/applications/developer',代替FB.api('/me/accounts')