20
如何從Facebook像按鈕獲得喜歡的數量? 有沒有可能的方法來做到這一點?如何從Facebook的按鈕獲得喜歡的數量?
如何從Facebook像按鈕獲得喜歡的數量? 有沒有可能的方法來做到這一點?如何從Facebook的按鈕獲得喜歡的數量?
有兩種方法可以獲得Facebook喜歡的數量。
http://graph.facebook.com/?ids=http%3a%2f%2ffacebook.com
結果是JSON:(出於某種原因, '喜歡',被稱爲 '共享')
{
"http://facebook.com": {
"id": "http://facebook.com",
"shares": 35641554,
"comments": 339
}
}
http://api.facebook.com/method/fql.query?query=select+total_count+from+link_stat+where+url= 「http://facebook.com」」
結果:
<?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>
<total_count>35641554</total_count>
</link_stat>
</fql_query_response>
故此稱爲股可能是在[Like按鈕文檔】導致報表(http://developers.facebook.com/docs/reference/plugins/喜歡/),閱讀**我的喜歡按鈕上顯示的數字是什麼組成的?**部分 – 2011-10-15 19:32:55