Receive messages from others on the page wall (Facebook API)

I searched around but can't find the answer, so I try here.

Is it possible to receive messages from other users on the wall of the page (see the image as an example: http://d.pr/i/fklT ) via. Facebook API?

I tried with / PAGE_ID / posts but this only gives me updates created on the page and not by people who liked the page

+4
source share
3 answers

This is possible using FQL instead of the usual graph objects:

https://graph.facebook.com/fql?q=SELECT post_id, actor_id, target_id, message FROM stream WHERE filter_key = 'others' AND source_id = YOUR_PAGE_ID&access_token=YOUR_ACCESS_TOKEN 

More on FQL: https://developers.facebook.com/docs/reference/fql/

+1
source

As Martin said, this is possible using the Graph API using FQL. I tried Martin's solution, but I needed to modify it a bit.

The definition filter_key = 'others' did not help. Instead, you can replace it with actor_id != YOUR_PAGE_ID , so at the end you can:

 https://graph.facebook.com/fql?q=SELECT post_id, created_time , app_data, type, actor_id, target_id, message FROM stream WHERE source_id = YOUR_PAGE_ID AND actor_id != YOUR_PAGE_ID&access_token=YOUR_ACCESS_TOKEN 

If you need more variables, you just need to put them after SELECT, and you can check them here: https://developers.facebook.com/docs/reference/fql/stream

On iOS, you do not need to put an access token in the request. To check how to do this with the latest iOS SDK, see my answer here: fooobar.com/questions/435725 / ...

+3
source

Using the api chart, you can get all the messages (including others) requesting the "feed" field instead of the "posts" field, for example / PAGE _ID / feed. I got this from this other answer:

fooobar.com/questions/1452333 / ...

+1
source

All Articles