Php Facebook Insights关于结束日期、周期和API调用结果的澄清

Php Facebook Insights关于结束日期、周期和API调用结果的澄清,php,facebook,facebook-graph-api,Php,Facebook,Facebook Graph Api,我无法理解end_date和period参数以及没有参数的page_impressions度量的API调用结果的含义 比如说,我查询上周的页面印象。Response包含第二个数组period week,还包含3个具有不同结束时间的嵌套数组。这段结束时间让我很困惑 这应该如何解释?我应该使用PHPSDK的api方法来控制这些参数吗 这是一个示例响应: array 'id' => string '194501267300320/insights/page_impressions/day'

我无法理解end_date和period参数以及没有参数的page_impressions度量的API调用结果的含义

比如说,我查询上周的页面印象。Response包含第二个数组period week,还包含3个具有不同结束时间的嵌套数组。这段结束时间让我很困惑

这应该如何解释?我应该使用PHPSDK的api方法来控制这些参数吗

这是一个示例响应:

array
  'id' => string '194501267300320/insights/page_impressions/day' (length=45)
  'name' => string 'page_impressions' (length=16)
  'period' => string 'day' (length=3)
  'values' => 
    array
      0 => 
        array
          'value' => int 1473
          'end_time' => string '2012-01-17T08:00:00+0000' (length=24)
      1 => 
        array
          'value' => int 1100
          'end_time' => string '2012-01-18T08:00:00+0000' (length=24)
      2 => 
        array
          'value' => int 1194
          'end_time' => string '2012-01-19T08:00:00+0000' (length=24)
  'title' => string 'Daily Total Impressions' (length=23)
  'description' => string 'Daily The number of impressions seen of any content
     associated with your Page. (Total Count)' (length=92)

array
  'id' => string '194501267300320/insights/page_impressions/week' (length=46)
  'name' => string 'page_impressions' (length=16)
  'period' => string 'week' (length=4)
  'values' => 
    array
      0 => 
        array
          'value' => int 12762
          'end_time' => string '2012-01-17T08:00:00+0000' (length=24)
      1 => 
        array
          'value' => int 11943
          'end_time' => string '2012-01-18T08:00:00+0000' (length=24)
      2 => 
        array
          'value' => int 12280
          'end_time' => string '2012-01-19T08:00:00+0000' (length=24)
  'title' => string 'Weekly Total Impressions' (length=24)
  'description' => string 'Weekly The number of impressions seen of any content
     associated with your Page. (Total Count)' (length=93)
Facebook开发者页面说这段时间:

收集指标的时间长度, 以秒为单位表示为86400天,604800周,2592000 月或0生存期或使用一个函数周期 一天、一周、一个月或一辈子

注意:每个度量可能没有所有可用的期间

和结束时间:

收集指标期间的期末, 表示为unix时间,应始终为太平洋地区的午夜 夏令时或使用函数end_Time_date,该函数采用 “YYYY-MM-DD”格式的日期字符串


以下是我的猜测:

索引0:从2012年1月11日到2012年1月17日,共有12762页的印象

'period' => string 'week' (length=4)
 0 => 
    array
      'value' => int 12762
      'end_time' => string '2012-01-17T08:00:00+0000' (length=24)
'period' => string 'week' (length=4)
 1 => 
    array
      'value' => int 11943
      'end_time' => string '2012-01-18T08:00:00+0000' (length=24)
索引1:从2012年1月10日到2012年1月16日,共有11943页的印象

'period' => string 'week' (length=4)
 0 => 
    array
      'value' => int 12762
      'end_time' => string '2012-01-17T08:00:00+0000' (length=24)
'period' => string 'week' (length=4)
 1 => 
    array
      'value' => int 11943
      'end_time' => string '2012-01-18T08:00:00+0000' (length=24)

顺便说一下,这是一个很好的起点。我必须找到一种方法来证实这一点,即使我不明白如何将结束日期传递给你的问题,如何解释你,甚至把那部分加粗,这样我们就不会错过了。不是如何传递结束日期。这是一个完全不同的问题。后续问题是不受欢迎的,除非它们被创建为一个新问题。