【发布时间】:2012-02-20 14:43:58
【问题描述】:
我遇到了一个奇怪的错误... 我要求获得 publish_actions 权限(我想在用户的时间轴上发布他刚刚登录到 diveboard.com 的潜水),并且因为我可能希望它批量工作(比如发布我所有的潜水)我希望它在回来而不是通过前面。我还是想以交互方式请求前台的权限。
当我只要求“publish_actions”时,弹出窗口会立即打开和关闭,显然没有授予权限(检查隐私)
FB.login(function(response) {
if (response.perms != undefined && response.perms.match(/publish\_actions/)!=null) {
G_user_fbtoken = getFBCookie().accessToken;
fbtimelinepublish_dive();
} else {
// user cancelled login
diveboard.notify("Unsufficient privileges","Could not get the adequate permissions to publish this action on your timeline");
toggle_fb_spinner();
return;
}
}, {scope:'publish_actions'});
}else{
fbtimelinepublish_dive();
}
有什么线索吗!?
更新:我尝试过:scope:'create_event,publish_actions,publish_stream,rsvp_event'
得到了
【问题讨论】:
-
所以我自己回答了一个解决方案:在 Open Graph Beta 中,“publish_actions”权限只能向您的应用程序的开发人员和测试用户请求。如果来自任何其他用户的请求,“publish_actions”权限将被忽略。然后我移到了新的身份验证窗口....希望这会给其他人一些挫败感....
标签: facebook facebook-javascript-sdk