Facebook洞察中的时间段如何运作?

时间:2013-08-18 13:22:09

标签: facebook facebook-graph-api

在我下面粘贴的示例中,我首先每天请求上个月的数据洞察数据。第二个是每周一次,第三个是每28天一次(让我们每月调用一次)。我的问题是days_28的数据与day完全相同,但至少应该像每周数据一样(I.E.过去28天的数据至少应该是61,而不仅仅是1)。

为什么会这样?我在解释数据错误吗?

网址如下:

https://graph.facebook.com/1404223219793416/insights/page_stories/day?since=-1month
https://graph.facebook.com/1404223219793416/insights/page_stories/week?since=-1month
https://graph.facebook.com/1404223219793416/insights/page_stories/days_28?since=-1month

以下是每日数据:

{
  "data": [
    {
      "id": "1404223219793416/insights/page_stories/day", 
      "name": "page_stories", 
      "period": "day", 
      "values": [
        {
          "value": 0, 
          "end_time": "2013-07-19T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-20T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-21T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-22T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-23T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-24T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-25T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-26T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-27T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-28T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-29T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-30T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-31T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-01T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-02T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-03T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-04T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-05T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-06T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-07T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-08T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-09T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-10T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-11T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-12T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-13T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-14T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-15T07:00:00+0000"
        }, 
        {
          "value": 1, 
          "end_time": "2013-08-16T07:00:00+0000"
        }
      ], 
      "title": "Daily Page Stories", 
      "description": "Daily The number of stories created about your Page. (Total Count)"
    }
  ], 
  "paging": {
    "previous": "https://graph.facebook.com/1404223219793416/insights/page_stories/day?since=1371647555&until=1374153155", 
    "next": "https://graph.facebook.com/1404223219793416/insights/page_stories/day?since=1376658755&until=1379164355"
  }
}

以下是每周数据:

{
  "data": [
    {
      "id": "1404223219793416/insights/page_stories/week", 
      "name": "page_stories", 
      "period": "week", 
      "values": [
        {
          "value": 0, 
          "end_time": "2013-07-19T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-20T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-21T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-22T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-23T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-24T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-25T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-26T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-27T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-28T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-29T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-30T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-31T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-01T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-02T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-03T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-04T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-05T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-06T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-07T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-08T07:00:00+0000"
        }, 
        {
          "value": 1, 
          "end_time": "2013-08-09T07:00:00+0000"
        }, 
        {
          "value": 1, 
          "end_time": "2013-08-10T07:00:00+0000"
        }, 
        {
          "value": 1, 
          "end_time": "2013-08-11T07:00:00+0000"
        }, 
        {
          "value": 2, 
          "end_time": "2013-08-12T07:00:00+0000"
        }, 
        {
          "value": 29, 
          "end_time": "2013-08-13T07:00:00+0000"
        }, 
        {
          "value": 50, 
          "end_time": "2013-08-14T07:00:00+0000"
        }, 
        {
          "value": 61, 
          "end_time": "2013-08-15T07:00:00+0000"
        }, 
        {
          "value": 61, 
          "end_time": "2013-08-16T07:00:00+0000"
        }
      ], 
      "title": "Weekly Page Stories", 
      "description": "Weekly The number of stories created about your Page. (Total Count)"
    }
  ], 
  "paging": {
    "previous": "https://graph.facebook.com/1404223219793416/insights/page_stories/week?since=1371647903&until=1374153503", 
    "next": "https://graph.facebook.com/1404223219793416/insights/page_stories/week?since=1376659103&until=1379164703"
  }
}

以下是月度数据:

{
  "data": [
    {
      "id": "1404223219793416/insights/page_stories/days_28", 
      "name": "page_stories", 
      "period": "days_28", 
      "values": [
        {
          "value": 0, 
          "end_time": "2013-07-19T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-20T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-21T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-22T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-23T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-24T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-25T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-26T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-27T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-28T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-29T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-30T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-07-31T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-01T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-02T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-03T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-04T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-05T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-06T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-07T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-08T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-09T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-10T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-11T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-12T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-13T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-14T07:00:00+0000"
        }, 
        {
          "value": 0, 
          "end_time": "2013-08-15T07:00:00+0000"
        }, 
        {
          "value": 1, 
          "end_time": "2013-08-16T07:00:00+0000"
        }
      ], 
      "title": "28 Days Page Stories", 
      "description": "28 Days The number of stories created about your Page. (Total Count)"
    }
  ], 
  "paging": {
    "previous": "https://graph.facebook.com/1404223219793416/insights/page_stories/days_28?since=1371647956&until=1374153556", 
    "next": "https://graph.facebook.com/1404223219793416/insights/page_stories/days_28?since=1376659156&until=1379164756"
  }
}

0 个答案:

没有答案