dongnachuang6635 2015-11-25 05:32
浏览 74
已采纳

无法使用facebook api获取照片

I am trying to fetch the photos of a user from facebook using php api. Currently I don't have permissions to fetch the photos from facebook. But I am using the same id which has been used to create the facebook app. I heard that we can use the same id (the one used to create the app) for testing everything from facebook. My code for fetching user photos is :-

$request = new FacebookRequest(
  $session,
  'GET',
  '/{user-id}/photos'
);
$response = $request->execute();
$graphObject = $response->getGraphObject();

Response of the above code :- Array()

It is returning a blank array. Is it because I do not have permissions to fetch photos or any other reason?

  • 写回答

1条回答 默认 最新

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 edge跟谷歌浏览器的默认搜索引擎无法修改,如何解决?
      • ¥15 access数据库出错
      • ¥100 matlab数学建模习题,求解答
      • ¥15 blender python输出纹理坐标(像素级)与三维坐标的对应关系
      • ¥15 python文件分发
      • ¥15 关于#c语言#的问题:要求:输出格式要界面直观、清晰大方、格式规范
      • ¥15 计算机组成汇编语言电路升级
      • ¥15 hadoop网站点击流数据分析项目
      • ¥15 TDA4 USB 识别不到的问题
      • ¥36 禁用ssl重协商以达到解决DOS漏洞