如何使用Facebook图表aPI获取朋友在我墙上发布的Feed?

问题描述:

What's the best way to fetch feeds posted on my wall by a friend? I am using Facebook graph API for PHP?

I am using this REST call for fetching all feeds posted by a friend:

https://graph.facebook.com/friends_profile_id/feed?access_token=user_access_token

But I want to fetch only those feeds that are posted on my wall. Can anyone help?

获取朋友在我墙上发布的Feed的最佳方式是什么? 我正在使用PHP的PHP图形API? p>

我正在使用此REST调用来获取朋友发布的所有供稿: p>

  https  ://graph.facebook.com/friends_profile_id/feed?access_token = user_access_token 
  code>  pre> 
 
 

但我想只获取贴在墙上的那些Feed。 有人可以帮忙吗? p> div>

In this case you should be accessing your own wall at the /me/feed connection and filtering out those posts which were made by you, or you can grab it from the FQL stream table

For the FQL example, see the documentation at https://developers.facebook.com/docs/reference/fql/stream/

A sample query (which will need an access token with read_stream access):

SELECT post_id, actor_id, target_id, message FROM stream WHERE source_id = me()
and actor_id != me() limit 50

Which returns the last 50 posts made on a user's wall, but not including posts they made themselves