2012-07-11 31 views

回答

7

对您管理的页面使用页面访问令牌(使用read_insightsPermission)。

然后,您可以访问/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/insights连接在Post documentation

被提及
相关问题