Facebook 页面洞察生命周期指标没有 return 结果

Facebook page insights lifetime metrics doesn't return results

我正试图在我拥有的页面上获得一些见解,例如 page_fans,在 https://developers.facebook.com/docs/graph-api/reference/v3.2/insights 中声明为同时具有 "day" 和 "lifetime" 句点。 (这不是我想要获得的唯一指标,但为了简单起见,我将以它为例。)

白天搞定,但我只是 不知道生命周期价值,所以我尝试 period=lifetime 而不是 period=day,我得到一个空的 data 数组。

这是我发送的请求:

{page_id}/insights?fields=&metric=page_fans&period=lifetime

请注意,如果我更改为 period=day,我会得到一个不错的对象:

"data": [
    {
      "name": "page_fans",
      "period": "day",
      "values": [
        {
          "value": 21578,
          "end_time": "2019-02-24T08:00:00+0000"
        },
        {
          "value": 21580,
          "end_time": "2019-02-25T08:00:00+0000"
        }
      ],
      "title": "Lifetime Total Likes",
      "description": "Lifetime: The total number of people who have liked your Page. (Unique Users)",
      "id": "{page_id}/insights/page_fans/day"
    }
  ],

我想获取生命周期数据的其他指标包括: "post_video_view_time_by_region_id", "post_video_views_by_distribution_type", "post_video_view_time_by_distribution_type", "post_video_view_time_by_country_id"

根据 v3.2

的变更日志

Page Insights

These changes apply to v3.2+, and will apply to all versions on January 21, 2019.

Period parameters have been changed to day from lifetime for the following metrics. The lifetime period parameter will return an empty dataset.

  • page_fans
  • page_fans_city
  • page_fans_country
  • page_fans_gender_age
  • page_fans_locale