6

有没有办法从我的应用帖子中检索覆盖面?

示例:我的应用在特定粉丝页面上发布照片,我想检索我的应用提供给该粉丝页面的影响力,以便向他们展示我的应用有多棒。

4

1 回答 1

7

使用您管理的页面的页面访问令牌(使用read_insights Permission)。

然后,您可以访问/POST_ID/insights以检索有关该帖子的见解信息。

对于我页面上的示例帖子,这将返回帖子的印象数据。摘抄:

{
      "id": "[ID REMOVED]/insights/post_story_adds_by_action_type/lifetime", 
      "name": "post_story_adds_by_action_type", 
      "period": "lifetime", 
      "values": [
        {
          "value": {
            "like": 20, 
            "comment": 3, 
            "share": 1
          }
        }
      ], 
      "title": "Lifetime Post Stories by action type", 
      "description": "Lifetime The number of stories created about your Page post, by action type. (Total Count)"
    }, 
    {
      "id": "[ID REMOVED]/insights/post_impressions_unique/lifetime", 
      "name": "post_impressions_unique", 
      "period": "lifetime", 
      "values": [
        {
          "value": 936
        }
      ], 
      "title": "Lifetime Post Total Reach", 
      "description": "Lifetime The number of people who saw your Page post. (Unique Users)"
    }, 
    {
      "id": "[ID REMOVED]/insights/post_impressions/lifetime", 
      "name": "post_impressions", 
      "period": "lifetime", 
      "values": [
        {
          "value": 2936
        }
      ], 
      "title": "Lifetime Post Total Impressions", 
      "description": "Lifetime The number of impressions of your Page post. (Total Count)"
    }, 

发布时的博客文章在这里:https://developers.facebook.com/blog/post/573/ 并且在Post 文档insights中提到了连接

于 2012-08-21T18:47:08.123 回答