FB API 不返回专辑
这就是我创建登录按钮(具有 photo_upload 权限)的方法:
<fb:login-button autologoutlink="true" perms="publish_stream, offline_access, photo_upload, share_item"></fb:login-button>
然后,我调用以下函数来检索相册:
function getAlbum()
{
console.log("retrieving the albums");
FB.api('/me/albums', function(response){
console.log(response);
});
return true;
}
但响应对象如下:
Object
Data: Array[0]
length: 0
我有 2 个公共相册,但我无法使用上面的方法检索它们代码。有人可以告诉我我做错了什么吗?
提前致谢 :)
This is how I create the login Button (with photo_upload permission):
<fb:login-button autologoutlink="true" perms="publish_stream, offline_access, photo_upload, share_item"></fb:login-button>
Then, I call the following function to retrieve the albums:
function getAlbum()
{
console.log("retrieving the albums");
FB.api('/me/albums', function(response){
console.log(response);
});
return true;
}
but the response object is as follows:
Object
Data: Array[0]
length: 0
I am having 2 public albums, but I cant able to retrieve them with above code. Can someone please tell me what I am doing wrong.
Thanks in advance :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到了解决方案。问题是我错过了“user_photos”权限。
现在,一切正常:)
found the solution. the problem is that I missed the 'user_photos' permission.
Now, everything works fine :)