[英]How to get the friends' posts on a facebook user's wall
I've been searching a lot for a way to get the posts
made by the user's friends
on his Facebook wall, but all what I reached is that I can only Post on friends
' walls but I cant retrieve what they posted on the user's
wall, so Is this correct or is there a way to retrieve these information? 我一直在寻找很多的方式来获得
posts
所做出user's friends
对他的Facebook墙上,但我到达那是什么,我只能上张贴friends
“的墙壁,但我不能取回他们贴在user's
墙,所以这是正确的还是有办法检索这些信息?
Note that I reached an FQL Query as follows 请注意,我到达了FQL查询 ,如下所示
SELECT post_id FROM stream WHERE actor_id=actorID and source_id = me()
but unfortunately it returned an empty string 但不幸的是,它返回了一个空字符串
I've been testing what you said and it is correct. 我一直在测试你说的是对的。 It is returning an empty array.
它返回一个空数组。 There is a small detail that we are missing and that is the LIMIT.
我们缺少一个小细节,那就是极限。
By default the limit of the posts that it will be returned is a small one and there is a big possibility that the required post is not found in that limit. 默认情况下,将返回的帖子的限制很小,并且很有可能在该限制中找不到所需的帖子。 The solution is the following:
解决方案如下:
SELECT post_id FROM stream WHERE actor_id=actorID and source_id = me() limit 100
If you still get an empty array try increasing the limit. 如果仍然有空数组,请尝试增加限制。 This worked fine with me though.
这对我来说很好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.