以事件所有者信息为例

时间:2013-02-24 18:14:01

标签: facebook facebook-graph-api facebook-fql

我对FQL查询有疑问。

我无法获取活动的所有者信息: 我收到这个错误:

"error": {
    "message": "(#602) owner is not a member of the event table.", 
    "type": "OAuthException", 
    "code": 602
  }

例如,对于此查询:

    SELECT name,description, owner.id from event 
    WHERE eid in (SELECT eid FROM event_member WHERE uid = me() 
    AND start_time > '2013-02-23T00:20:00')

1 个答案:

答案 0 :(得分:1)

这恰好是因为owner不是event表的成员。见http://developers.facebook.com/docs/reference/fql/event

但您可以使用字段creator查找事件的创建者,因此,您的查询将成为

SELECT name,description, creator from event 
WHERE eid in (SELECT eid FROM event_member WHERE uid = me() 
AND start_time > '2013-02-23T00:20:00')