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(
$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条回答 默认 最新

相关推荐 更多相似问题