I have a web application, where users have to login with their facebook accounts. I want to get user’s shared youtube links on her/his timeline, when s/he is logging into the system.
I think open graph api does not support such feature. I do not know it is possible or not.
How can I get this information?
Thank you in advance.
You cannot filter the timeline for specific data, but you can narrow down the number of possible records to process by using the “links” path component:
https://graph.facebook.com/userID/links?access_token=AT
This will return all links the user posted on his timeline. Loop through all returned results, search the link field, if it contains “youtube” you have a video.
Keep in mind that even you set a high limit (like 2000 entries) you need to deal with paging.
Hope that helps: Lars