2014-10-03 106 views
2

Insights API适用于链接Feed,但不适用于照片Feed。对于照片供稿,即使“见解”页面显示较高的覆盖率和参与率,“洞察”API也会返回0或为空。如何使用Graph API获取照片Feed的Facebook Insights数据?

这里是我的相片资讯提供的URL模式:我已经struggeling具有相同

{ 
    "id": "[PAGE ID]_[POST ID]/insights/post_story_adds_by_action_type_unique/lifetime", 
    "name": "post_story_adds_by_action_type_unique", 
    "period": "lifetime", 
    "values": [ 
     { 
      "value": [ 
      ] 
     } 
    ], 
    "title": "Lifetime Talking About This (Post) by action type", 
    "description": "Lifetime: The number of unique people who created a story about your Page post by interacting with it. (Unique Users)" 
} 

回答

1

https://www.facebook.com/[PAGE]/photos/a.xxx.xxx.[PAGE ID]/[POST ID]/

见解API返回问题......我可以告诉你的一件事是,你最有可能使用错误的身份证照片帖子。

请确保您只使用由facebook api检索的ID。因此,这是一个简单的过程:

1. Note your page-id 
2. Use GRAPH to query <url-to-graph>/<page_id>/feed?access_token=<your_token> 
3. From the response, take the photo-post-id you want to analyze 
4. Use GRAPH to query <url-to-graph>/<id_from_step_3>/insights/?access_token=<your_token> 
5. Check the metrics returned from step 4 and enjoy! 

请记住,有一个无证需要你PAGE_ID添加到任何POST_ID。因此,每个{post-id}的替换都将写入FB api中。

希望可以帮到...

相关问题