从我的应用帖子中找到Facebook覆盖面的方法?

时间:2012-07-11 00:39:19

标签: facebook social-networking

有没有办法从我的应用帖子中检索到达范围?

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

1 个答案:

答案 0 :(得分: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 documentation

中提到了insights连接