2012-10-30 40 views
2

我喜欢Facebook的按钮在我的网站,如下创建:我怎样才能得到确切的Facebook喜欢计数?

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2fexample.com&layout=button_count&show_faces=false&width=110&action=like&colorscheme=light&height=35" 
    scrolling="no" frameborder="0" 
    allowTransparency="true"> 
</iframe> 

像此刻计数显示为1,5 k。我想得到确切数量的喜欢。

我试图查询http://graph.facebook.com/?id=http%3A%2F%2Fexample.com,但响应我得到的是:

{ 
    "id": "http://example.com", 
    "shares": 349 
} 

我也曾尝试使用FQL:

http://graph.facebook.com/fql?q=SELECT 
            like_count,total_count,click_count,commentsbox_count 
           FROM link_stat 
           WHERE url='http%3A%2F%2Fexample.com' 

和响应是:

{ 
    "data": [ 
    { 
     "like_count": 251, 
     "total_count": 349, 
     "click_count": 0, 
     "commentsbox_count": 0 
    } 
    ] 
} 

我怎样才能得到确切的计数?

+0

你确定你正在1.5k?你可以给它的链接和截图吗? –

回答