如何从给定网址的Facebook获取喜欢的号码?

时间:2014-03-27 02:56:55

标签: facebook button twitter google-plus facebook-like

网址http://www.cnn.com/2014/03/15/world/asia/malaysia-airlines-passenger-vignettes/index.html?hpt=hp_t1

如何从此网址获取Facebook号码或推文帖子号码或谷歌+号码?

1 个答案:

答案 0 :(得分:1)

您可以通过Graph API使用以下FQL:

select url, like_count from link_stat where url='http://edition.cnn.com/2014/03/15/world/asia/malaysia-airlines-passenger-vignettes/index.html'
像这样:

https://graph.facebook.com/fql?q=select%20url%2C%20like_count%20from%20link_stat%20where%20url%3D%27http%3A%2F%2Fedition.cnn.com%2F2014%2F03%2F15%2Fworld%2Fasia%2Fmalaysia-airlines-passenger-vignettes%2Findex.html%27

给出结果

{
  "data": [
    {
      "url": "http://edition.cnn.com/2014/03/15/world/asia/malaysia-airlines-passenger-vignettes/index.html", 
      "like_count": 28529
    }
  ]
}