2012-08-16 43 views
1

当我查询的Facebook为256996217750754 EID使用FQL,它END_TIME返回为空:为什么Facebook返回null end_time事件?

SELECT eid, name, pic_small, pic_big, pic_square, pic, host, description, start_time, end_time, creator, update_time, location, venue, privacy from event where eid=256996217750754

回报:

... 
"start_time": "2012-09-01T22:00:00-0400", 
"end_time": null, 
... 

然而,当我查询图表,它返回准确的:

https://graph.facebook.com/256996217750754?access_token=<access_token>

回报:

... 
start_time: "2012-09-01T22:00:00", 
end_time: "2012-09-02T01:00:00", 
... 

有谁知道为什么?

回答

0

我相信DONN李是部分正确。根据Facebook开发者article,“end_time”总是为事件定义的。但是,这将在2012年10月30日前消失。

请注意Donn Lee从图表和我自己的回答之间的差异。

我的回答是,它具有“活动时区”已禁用:

... 
"start_time": "2012-09-01T22:00:00-0400", 
"end_time": null, 
... 

DONN李的反应,这可能有“活动时区”启用:

... 
"start_time": "2012-09-01T22:00:00-0400", 
... 

此设置可以在“迁移发现“在Facebook的”高级“设置页面上:

enter image description here

结论

它看起来像我需要迁移我的代码,以支持Facebook的new event time conventions

  1. 手柄ISO-8601 与偏移
  2. 预期没有 “END_TIME” 如果没有指定。
1

end_time在事件没有定义可选结束时间时为空。 此外,当我查询图表针对该事件,我没有看到end_time这与FQL返回null一致:

{ 
    "id": "256996217750754", 
    "owner": { 
     "name": "Buffalo Wings & Rings Morrisville, NC", 
     "category": "Restaurant/cafe", 
     "id": "136674116345739" 
    }, 
    "name": "UFC 151 on Pay Per View - Jones vs. Henderson", 
    "description": "Main Card -\nJones vs Henderson\nJohnson vs Castillo\nMizugaki vs Hougland\nSiver vs Yagin\nLineker vs Urushitani\nPrelims - \nCruickshank vs Martinez\nRoller vs Volkmann", 
    "start_time": "2012-09-01T22:00:00-0400", 
    "timezone": "America/New_York", 
    "location": "Buffalo Wings & Rings Morrisville, NC", 
    "venue": { 
     "id": "136674116345739" 
    }, 
    "privacy": "OPEN", 
    "updated_time": "2012-08-02T14:37:21+0000" 
} 

我用:

https://graph.facebook.com/256996217750754?access_token=AAACEdEose...