Facebook API: All links shared by all friends?

后端 未结 2 783
名媛妹妹
名媛妹妹 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条回答
  •  -上瘾入骨i
    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.

提交回复
热议问题