Reputation: 10748
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?
Upvotes: 3
Views: 1803
Reputation: 63
For domain searching try adding something like WHERE strpos(url,'domain.com') > 0, asside to an indexable column in your where clause.
Upvotes: 0
Reputation: 36
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.
Upvotes: 2