您需要使用Facebook的FQL与表link_stat。使用类似于此
SELECT
url, normalized_url,
share_count, like_count, comment_count, total_count,
commentsbox_count, comments_fbid, click_count
FROM link_stat
WHERE url="http://www.imdb.com/title/tt0117500/"
某事,这是该查询的结果(XML格式,当然你也可以把它在JSON)
<?xml version="1.0" encoding="UTF-8"?>
<fql_query_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" list="true">
<link_stat>
<url>http://www.imdb.com/title/tt0117500/</url>
<normalized_url>http://www.imdb.com/title/tt0117500/</normalized_url>
<share_count>6233</share_count>
<like_count>9500</like_count>
<comment_count>2179</comment_count>
<total_count>17912</total_count>
<commentsbox_count>6</commentsbox_count>
<comments_fbid>380728101301</comments_fbid>
<click_count>164</click_count>
</link_stat>
</fql_query_response>
的TOTAL_COUNT(17912)是你的号码寻找。
如果你想把这个响应作为JSON,只需追加'&format = json'来请求URL – Dexter 2014-04-09 12:19:46
这个API不再可用。 – 2016-12-06 20:24:30
不再有效。 – lcm 2017-06-16 20:22:23