我正在尝试获取Facebok页面照片的共享数量。但我不能那样做!照片的桌子上只有点赞/评论信息。而且,表格"流"只适用于帖子,不适用于照片。
照片编号:313125495503479
页面ID:285150194967676
有什么可以做的吗?
当对象是照片时,可以这样做:
https://graph.facebook.com/fql?q=select+share_count+from+stream+where+post_id+IN+(select+page_story_id+from+photo+where+object_id+='"{$object_id}'"+)&access_token={$tk}
当对象是一个流或类似的东西时,你可以这样做:
https://graph.facebook.com/fql?q=select+share_count+from+stream+where+post_id+='"{$object_id}'"&access_token={$tk}
解析json,得到字段"share_count"。。。为我工作!