我可以使用hello.js登录,也可以获取用户数据(/me)和相册(/me/albums),但没有来自/share端点的数据。
示例:
hello.init({
facebook : 'SECRET'
}, {scope: 'friends,photos' });
hello.on('auth.login', function(auth){
hello( auth.network ).api( '/me' ).then( function(r){
console.log("User data is: ");
console.log(r);
});
hello( auth.network ).api( '/me/share' ).then( function(r){
console.log("Share data is: ");
console.log(r);
},function(e){
console.log("ERROR: "+e);
});
});这导致:
User data is:
Object {first_name: "Lucy"} (edited to save space)
Share data is:
Object {data: Array[0]}因此,我能够成功地使用hello.js登录,但不能访问共享数据。我的代码中有遗漏什么吗?我需要在某个地方更新权限吗?
请求公共配置文件的FB说只提供以下功能:
因此,我希望我需要请求权限才能查看用户的状态。但在权限文档中似乎没有什么需要澄清的。
发布于 2015-03-31 03:19:23
Facebook需要在检索me/status或me/feed结果之前将应用程序白名单。
https://stackoverflow.com/questions/27729186
复制相似问题