Get Facebook Friends Messages

Is there a way to use facebook FQL to retrieve all the messages (or video messages) of a user's friend?

For example, something like:

SELECT post_id, message FROM stream WHERE source_id=(fb_friends_array) 

And how to use it with api chart. I usually use the following syntax to retrieve data:

 $data = json_decode(file_get_contents(....)); 
+4
source share
1 answer

Yes there is!

 https://graph.facebook.com/{friends_uid}/posts 

This call will return ALL messages (and data in messages - comments, etc.) that you have permission to view (depending on the privacy settings of your friends) ...

To get photos or videos, all you have to do is change the "message" with the video or images ... Of course, your application must have permission to see your friends and videos.

+4
source

All Articles