Facebook API: All links shared by all friends?

后端 未结 2 782
名媛妹妹
名媛妹妹 2021-01-14 03:53

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,

相关标签:
2条回答
  • 2021-01-14 04:24
    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.

    0 讨论(0)
  • 2021-01-14 04:35

    For domain searching try adding something like WHERE strpos(url,'domain.com') > 0, asside to an indexable column in your where clause.

    0 讨论(0)
提交回复
热议问题