Facebook 页面: http: //facebook.com/getwellgabby/events/目前有 8 个事件。我可以看到他们。非管理员可以看到它们并可以加入它们。
但是,当我通过 Graph API 或 FQL 进行调用时,只返回 4 个未来事件。结果可以在这里看到:http ://getwellgabby.org/events?raw=1 (滚动到底部以获取原始响应。)
FQL 查询是:
SELECT eid, name, start_time, end_time, location, venue, description
FROM event WHERE eid IN ( SELECT eid FROM event_member WHERE uid = 213367312037345 ) AND end_time > now()
ORDER BY end_time asc
检查通过 Graph API 返回的单个事件 ID 显示这些事件之间没有区别。但是,当通过前端编辑它们时,它们会显示在不同的对话框中。
接下来是两个示例事件。两者都是由同一个页面管理员创建的。相隔24小时。第一个事件通过 API/FQL 调用正确显示。第二个没有。从前端看,第二个事件的显示与第一个不同。
以下数据是使用 FB Graph API Explorer Tool 使用具有“create_event”权限的访问令牌返回的。
正确报告:
{
"id": "344143808978921",
"owner": {
"name": "Get Well Gabby",
"category": "Non-profit organization",
"id": "213367312037345"
},
"name": "Get Well Gabby Day With The Reading Phillies",
"description": "Please join [truncated...]",
"start_time": "2012-06-10T13:30:00",
"end_time": "2012-06-10T16:30:00",
"location": "FirstEnergy Stadium",
"venue": {
"street": "1900 Centre Ave.",
"city": "Reading",
"state": "Pennsylvania",
"country": "United States",
"latitude": 40.357,
"longitude": -75.91434,
"id": "223424611014786"
},
"privacy": "OPEN",
"updated_time": "2012-04-25T14:22:57+0000",
"type": "event"
}
未正确报告:
{
"id": "128748077259225",
"owner": {
"name": "Get Well Gabby",
"category": "Non-profit organization",
"id": "213367312037345"
},
"name": "Get Well Gabby Day With The Wilmington Blue Rocks",
"description": "Get Well Gabby Day With [truncated...]",
"start_time": "2012-07-29T13:35:00",
"end_time": "2012-07-29T16:35:00",
"timezone": "America/New_York",
"location": "Frawley Stadium",
"venue": {
"id": "148306638522325"
},
"privacy": "OPEN",
"updated_time": "2012-04-25T18:11:35+0000",
"type": "event"
}
请注意,未正确报告的事件的前端对话框将不接受额外的场地信息。