为什么Facebook API会为同一个网址返回不同的 shared_count 和 comment_count ,具体取决于我查询的API版本?
图表API 1.0(已弃用)
https://graph.facebook.com/v1.0/fql?q=SELECT%20url,%20share_count,%20like_count,%20comment_count,%20total_count,%20click_count%20FROM%20link_stat%20where%20url=%27http://www.wikipedia.org/%27
结果
{
"data": [
{
"url": "http://www.wikipedia.org/",
"share_count": 73450,
"like_count": 28937,
"comment_count": 16637,
"total_count": 119024,
"click_count": 621935
}
]
}
图表API 2.3(当前)
https://graph.facebook.com/v2.3/?id=http://www.wikipedia.org/&access_token=SECRET_TOKEN_HERE
结果
{
"og_object": {
"id": "382267859091",
"title": "Wikipedia",
"type": "website",
"updated_time": "2015-04-21T21:22:59+0000",
"url": "http://www.wikipedia.org/"
},
"share": {
"comment_count": 3,
"share_count": 199005
},
"id": "http://www.wikipedia.org/"
}
此外,sharedcount.com返回与v1.0 API匹配的数字:
http://www.sharedcount.com/#url=http%3A%2F%2Fwww.wikipedia.org%2F