Facebook FQL 查询返回 {}
我使用 FQL 从用户流中获取数据来构建一个看起来像墙到墙的网页。有两个查询:
query = "从流中选择 post_id、消息、created_time WHERE filter_key IN (从stream_filter中选择filter_key WHERE uid="+user['uid']+" AND type='newsfeed') AND target_id = "+uid+" AND actor_id = "+user['uid']+" LIMIT 5"
和
query = "从流 WHERE filter_key IN 中选择 post_id、消息、created_time (从stream_filter WHERE uid="+user['uid']+" AND type='newsfeed'中选择 filter_key) AND target_id = "+user[' uid']+" AND actor_id = "+uid+" LIMIT 5"
他们只返回:
{}
我的查询出了什么问题? 谢谢 :)
I'm using FQL to get data from user's stream to build a web page looks like wall-to-wall. With two queries:
query = "SELECT post_id, message, created_time FROM stream WHERE filter_key IN (SELECT filter_key FROM stream_filter WHERE uid="+user['uid']+" AND type='newsfeed') AND target_id = "+uid+" AND actor_id = "+user['uid']+" LIMIT 5"
and
query = "SELECT post_id, message, created_time FROM stream WHERE filter_key IN (SELECT filter_key FROM stream_filter WHERE uid="+user['uid']+" AND type='newsfeed') AND target_id = "+user['uid']+" AND actor_id = "+uid+" LIMIT 5"
they only return:
{}
What's wrong in my queries ?
Thank you :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试检查您用于 uid 的值。
target_id 表示它发布到的墙,仅当该墙不是 actor_id 的墙时。
两者永远不会相等。
try checking the values you are using for uid..
target_id means the wall it was posted to, ONLY if the wall was not the actor_id's wall..
Both will never be equal.