标签: php facebook-graph-api
$photos=$fb->get("/me/albums?fields=picture",$accessToken)->getGraphEdge()->asArray(); foreach ($photos as $key => $value) { echo $value['data']; }
我想从Facebook获取照片,但是getGraphEdge()返回空数组。.help
答案 0 :(得分:0)
使用getGraphNode()代替图像和照片。您还需要首先获得权限。有关更多信息,您可以转到他们的official documetation
getGraphNode()