用于App Insights的Facebook Graph API未返回最新结果

时间:2017-04-14 14:11:35

标签: facebook facebook-graph-api

我正在尝试在Facebook Graph API中查询,但它没有返回最新结果。它给了我3天前(4月11日)的数据,我不能让它返回包括过去两天(12日或13日)的结果。当我明确地将sinceuntil参数设置为过去两天时,它不会返回任何数据。

=== Query
  curl -i -X GET \
   "https://graph.facebook.com/v2.8/266492440452954/app_insights/facebook_features_daily_active_users?access_token=<access token sanitized>"
=== Access Token Info
  {
    "perms": [
      "user_birthday",
      "user_about_me",
      "email",
      "read_insights",
      "read_audience_network_insights",
      "manage_pages",
      "public_profile"
    ],
    "user_id": "10101060008646191",
    "app_id": 145634995501895
  }

=== Response
  {
    "data": [
      {
        "time": "2017-04-08T08:00:00+0000",
        "value": "0"
      },
      {
        "time": "2017-04-09T08:00:00+0000",
        "value": "0"
      },
      {
        "time": "2017-04-10T08:00:00+0000",
        "value": "1"
      },
      {
        "time": "2017-04-11T08:00:00+0000",
        "value": "2"
      }
    ],
    "__debug__": {}
  }

=== Debug Information from Graph API Explorer
- https://developers.facebook.com/tools/explorer/?method=GET&path=266492440452954%2Fapp_insights%2Ffacebook_features_daily_active_users&version=v2.8  

关于这里可能出现什么问题的任何想法?

1 个答案:

答案 0 :(得分:0)

从它的外观来看,似乎统计数据落后了一天。它可能是由于时区差异造成的,但到目前为止,我还无法确定是否属实。