0

Is it possible to get the data posted by a person on the timeline of one other person on Facebook?

If it is, how could I do it? Do I need to use FQL queries?

Cristiano Santos
  • 2,157
  • 2
  • 35
  • 53

1 Answers1

1

This will get you things that someone else has posted on the active user's timeline with FQL:

SELECT actor_id, created_time, message, attachment FROM stream 
   WHERE source_id=me() AND actor_id != me()
cpilko
  • 11,792
  • 2
  • 31
  • 45
  • Is it possible to get this between 2 dates? And does it retrieve the data where the source_id was tagged? – Cristiano Santos Jan 25 '13 at 13:45
  • Yes, you could by adding more conditions to the `WHERE` part of the query. Take a look at the `stream` table documentation: https://developers.facebook.com/docs/reference/fql/stream – cpilko Jan 25 '13 at 13:49
  • Is it possible to get the same result using graph api? – Cristiano Santos Jan 25 '13 at 16:32
  • Not that I'm aware of. Graph API doesn't allow you to filter results on a specific condition like FQL does. – cpilko Jan 25 '13 at 16:36
  • FQL isn't buggy. The `stream` table is deliberately hobbled to restrict what you can get. The equivalent Graph API `/feed` endpoint has the same limitations. – cpilko Jan 25 '13 at 16:55
  • But it never returns the LIMIT of items that I specify. And If I put a range of one month, I only get like 10 results that in reality, only ranges a week. – Cristiano Santos Jan 25 '13 at 17:23