简体   繁体   English

Facebook $ this-> facebook-> api('me / albums')返回空数组

[英]Facebook $this->facebook->api('me/albums') returning empty array

I have developed a facebook app get all profile pictures of user. 我开发了一个Facebook应用程序,获取用户的所有个人资料图片。 The issue is that app is working for me, but same page returns empty array if i logged in with another facebook account. 问题是该应用程序正在为我工​​作,但是如果我使用另一个facebook帐户登录,则同一页面将返回空数组。 Following is my code 以下是我的代码

$albums = $this->facebook->api('me/albums'); // api call to facebook to fech all albums of the given page
print_r($albums['data']);
exit;

我假设您没有通过Login Review ,所以所需的user_photos权限仅对在应用程序中具有角色(管理员,开发人员,测试人员)的用户有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM