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

Raf*_*ira 6 facebook social-networking

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

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

Igy*_*Igy 7

使用您管理的页面的页面访问令牌(使用read_insights 权限).

然后,您可以访问/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)"
    }, 
Run Code Online (Sandbox Code Playgroud)

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