Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook API: All links shared by all friends?

What is the most practical way to access the links shared by the whole of a users' facebook friends?

I'm looking to scrape all the links to a handful of domains, shared by the friends of the authenticated user.

Is there a way to ask for "All links of domain X", "All links" (and I'll filter for domain X) or do I need to fetch each friend and parse each individual feed? I'm assuming there's a main "Inbound" feed that will be all the links from all the friends. True? Not true?

like image 841
Jordan Feldstein Avatar asked Jan 18 '26 16:01

Jordan Feldstein


1 Answers

select title, url, owner from link where owner in (select uid2 from friend where uid1 = me() limit 100)

will return links shared by friends of the authenticated user. You would then need to filter the urls for the domains you are interested in. Since the URL field in the Link table is not indexed, you cannot perform a WHERE on it in the FQL.

like image 151
Prasanth Pulavarthi Avatar answered Jan 21 '26 07:01

Prasanth Pulavarthi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!