2014-03-03 54 views
0

通常情況下,似乎fql的數字爲一個給定的網址,共享,評論,總數似乎是關閉的。FQL喜歡,分享,評論計數的準確性

比如這個網址

http://www.france24.com/en/20140112-reporters-crimean-tatars-unending-exile-identity-ethnic-minority-muslims-central-asia-ukraine

FQL顯示:

share_count: 18377 
like_count: 16215 
comment_count: 8840 
total_count: 43432 

的圖形API顯示出非常不同的數字,如果你查看Facebook構件上的URL本身指望它有一個完全不同的數量。

任何人都知道發生了什麼以及如何獲得準確的數字。

+0

從未使用過任何的Facebook的東西,但不同的結果會建議我像某種數據緩存。就像[堆棧交換數據查詢工作](http://data.stackexchange.com/)一樣(注意昨天最後更新的部分......)部分......只是猜測頭腦,但可能會給你一個想要搜索的東西的想法對於 – musefan

+0

_「FQL shows」_ - no,我沒有。結果我從FQL'link_stat'表中獲得該URL,Graph API和官方Like按鈕中顯示的總數一致 - 並且_way_低於你顯示的數字(現在總數爲77)。不知道你從哪裏得到_your_數字... – CBroe

+0

謝謝,CBroe你是否檢查了我發佈的網址?如果你添加/到結尾,你會得到77作爲小部件顯示。沒有/總我爲link_stat表顯示43532. – virap

回答

2

當查詢link_stat網址爲您提供我們看到以下內容:

select comment_count, like_count, share_count, total_count 
    from link_stat where url = 'http://www.france24.com/en/20140112-reporters-crimean-tatars-unending-exile-identity-ethnic-minority-muslims-central-asia-ukraine/' 
 
{ 
    "data": [ 
    { 
     "comment_count": 10, 
     "like_count": 55, 
     "share_count": 18, 
     "total_count": 83 
    } 
    ] 
} 

但隨着網站france24.com我們清楚地看到你的號碼(WEEL略有改變當然是母公司網址查詢link_stat時,但幾乎相同)。所以檢查你的查詢 - 也許你在請求中以某種方式切斷網址?

select comment_count, like_count, share_count, total_count 
    from link_stat where url = 'http://www.france24.com/' 
 
{ 
    "data": [ 
    { 
     "comment_count": 8840, 
     "like_count": 16415, 
     "share_count": 18377, 
     "total_count": 43632 
    } 
    ] 
} 
+0

嗨user15,謝謝你是的,在/ url結尾處是/數字,問題出在沒有/最後的url,像這個http://www.france24。com/en/20140112-reporter-Crimean-tatars-endless-exile-identity-ethnic-minority-muslims-central-asia-ukraine – virap

+0

是否有替代fql(因爲fql不適用於2以上的版本)題。有沒有提供相同輸出的api? –

+0

@sudil你應該看看Facebook的見解https://developers.facebook.com/docs/graph-api/reference/v2.1/insights,但它對我來說過於複雜 – user15