从粉丝页面获取事件的 FQL 查询错误
我正在尝试获取粉丝页面创建的所有活动。我使用了下面的查询。
SELECT eid, name, description, pic_big, start_time, end_time, location
FROM event
WHERE creator = 142258389139112
AND eid IN (SELECT eid FROM event_member WHERE uid = 142258389139112)
好的,这工作正常,但我在 FQL 文档中看到,如果我不指定 <表 event_member
中的 code>start_time 它只会返回未来的事件,但我需要粉丝页面创建的所有事件,这包括事件过去的时间。
我尝试使用此查询:
SELECT eid, name, description, pic_big, start_time, end_time, location
FROM event
WHERE creator = 142258389139112
AND eid IN (
SELECT eid
FROM event_member
WHERE uid = 142258389139112
AND start_time > 1316649600
ORDER BY start_time
)
但它返回此错误:
“错误代码”:604, "error_msg": "无法同时通过 'eid' 和 'start_time' 查询",
当我尝试使用我的 uid 时,通常会查询该函数:
SELECT eid, name, description, pic_big, start_time, end_time, location
FROM event
WHERE creator = 142258389139112
AND eid IN (
SELECT eid
FROM event_member
WHERE uid = me()
AND start_time > 1316649600
ORDER BY start_time
)
I'm trying to get all events created by a fan page. I used the query below.
SELECT eid, name, description, pic_big, start_time, end_time, location
FROM event
WHERE creator = 142258389139112
AND eid IN (SELECT eid FROM event_member WHERE uid = 142258389139112)
OK, this works fine, but I see in the FQL documentation that if I do not specify the start_time
in table event_member
it will just return the future events, but I need ALL events created by the fan page, and this includes when the event is in the past.
I try to use this query:
SELECT eid, name, description, pic_big, start_time, end_time, location
FROM event
WHERE creator = 142258389139112
AND eid IN (
SELECT eid
FROM event_member
WHERE uid = 142258389139112
AND start_time > 1316649600
ORDER BY start_time
)
But it returns this error:
"error_code": 604,
"error_msg": "Cannot query by both 'eid' and 'start_time'",
When I try to use my uid, this query the function normally:
SELECT eid, name, description, pic_big, start_time, end_time, location
FROM event
WHERE creator = 142258389139112
AND eid IN (
SELECT eid
FROM event_member
WHERE uid = me()
AND start_time > 1316649600
ORDER BY start_time
)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有一个小语法错误,请参阅下面的工作查询。
我希望这有帮助。
You have a small syntax error, see the working query below.
I hope this helps.