开发者

Facebook FQL queries return {}

开发者 https://www.devze.com 2023-01-22 12:58 出处:网络
I\'m using FQL to开发者_运维知识库 get data from user\'s stream to build a web page looks like wall-to-wall. With two queries:

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 :)


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号