2012-09-24 17 views
0

當我看這個頁面:錯號trought graph.facebook.com

http://www.rockit.it/BusyFamily/album/advice-for-your-next-failure/20334

喜歡的是42

,如果我嘗試通過Facebook API來檢索喜歡的數量:

http://graph.facebook.com/?id=http://www.rockit.it/BusyFamily/album/advice-for-your-next-failure/20334

{ 
    "name": "Advice for your next failure - Busy Family", 
    "is_published": true, 
    "description": "Ascolta l'album su Rockit.", 
    "about": "Ascolta l'album su Rockit.", 
    "app_id": 162683947163843, 
    "category": "Album", 
    "id": "491498180869281", 
    "link": "http://www.rockit.it/BusyFamily/album/advice-for-your-next-failure/20334", 
    "likes": 2 
} 

我有2個喜歡,爲什麼?

開放的圖形數據是這樣的:

<meta property="og:title" content="Advice for your next failure - Busy Family"/> 
<meta property="og:type" content="album"/> 
<meta property="og:url" content="http://www.rockit.it/BusyFamily/album/advice-for-your-next-failure/20334"/> 
<meta property="og:site_name" content="Rockit.it"/> 
<meta property="fb:admins" content="1747861721"/> 
<meta property="fb:admins" content="763518965"/> 
<meta property="fb:app_id" content="162683947163843"/> 
<meta property="og:description" content="Ascolta l'album su Rockit. 「Advice for your next failure」 è l’opera prima dei Busy Family, fresca band folk-rock di stanza tra Trieste e Belluno, nata dall’idea di..."/> 
<meta property="og:image" content="http://www.rockit.it/thumbx200x200/copertine/20334.jpg"/> 

回答

3

的Like按鈕的數量不僅是像計數;這是類似按鈕的文件上提到的,對於更詳細的統計數據,你可以使用url_like FQL表:

select normalized_url, share_count, like_count, comment_count, total_count, commentsbox_count, comments_fbid, click_count from link_stat WHERE url = 'http://www.rockit.it/BusyFamily/album/advice-for-your-next-failure/20334'

結果現在

{ 
    "data": [ 
    { 
     "normalized_url": "http://www.rockit.it/BusyFamily/album/advice-for-your-next-failure/20334", 
     "share_count": 16, 
     "like_count": 23, 
     "comment_count": 3, 
     "total_count": 42, 
     "commentsbox_count": 0, 
     "comments_fbid": 377087125706867, 
     "click_count": 0 
    } 
    ] 
} 

total_count是對Like按鈕

顯示的數字
+0

所以基本上這裏有一個假設,如果一個用戶「共享」URL,它應該算作「XXX這樣的其他人」。 – Lix

+1

是的,這是在**下面提到的,在[文檔頁面](https://developers.facebook.com/docs/reference/plugins/like/)上的Like按鈕?**上顯示的數字是什麼組成的。 – Igy

+0

Right嘿,在哪裏? :P我不知道這個數字與其他行爲有關。很高興知道!謝謝! – Lix

相關問題