Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/197.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 在facebook中访问相册时返回空白json数据_Android_Facebook - Fatal编程技术网

Android 在facebook中访问相册时返回空白json数据

Android 在facebook中访问相册时返回空白json数据,android,facebook,Android,Facebook,当我在android中使用facebook的Graph API时(使用facebook android sdk) 要访问相册,请使用以下url https://graph.facebook.com/me/albums?access_token=XXXXXXXXXXXXXX 但不幸的是,它正在返回{“数据”:[]} 其他URL如 https://graph.facebook.com/me?access_token=XXXXXXXXXXXXXX https://graph.facebook

当我在android中使用facebook的Graph API时(使用facebook android sdk) 要访问相册,请使用以下url

https://graph.facebook.com/me/albums?access_token=XXXXXXXXXXXXXX
但不幸的是,它正在返回{“数据”:[]}

其他URL如

  https://graph.facebook.com/me?access_token=XXXXXXXXXXXXXX
  https://graph.facebook.com/me/friends?access_token=XXXXXXXXXXXXXX
你做得很好

所以我不知道它返回{“data”:[]的原因是什么。我尝试在facebook上访问我自己的帐户,并使用Graph API上提供的示例url&在那里,如果我使用以下url,那么它将为我提供所有必要的数据。但不在facebook android sdk中工作

https://graph.facebook.com/me/albums?access_token=XXXXXXXXXXXXXX
此用户拥有的相册 创建。需要用户提供照片或 朋友照片许可


你需要那个许可

已分配用户照片权限。我无法从以下列表中找到friend_photos权限: