2011-10-05 105 views
0

我使用这个网址检索网页的XML数据:LIKE_COUNT喜欢

https://api.facebook.com/method/fql.query?query=select%20%20share_count,%20like_count,%20comment_count,%20total_count,%20click_count%20from%20link_stat%20where%20url=%27http://www.justinboots.com/en/Justin_America_Zone.html?item_id=266%27&format=xml

返回的数据如下:

<?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> 
<like_count>56</like_count> 
</link_stat> 
</fql_query_response> 

或LIKE_COUNT 56;然而,我的Facebook小部件显示84个喜欢。

如果我喜欢一个页面,两个计数都会递增1.如果点击不同,则两者都会减少1. like_count和facebook widgetlikes之间有什么关系?

回答

0

类似插件/ Facebook构件计数器显示比喜欢更它将显示TOTAL_COUNT

SELECT total_count FROM link_stat WHERE url='http://www.justinboots.com/en/Justin_America_Zone.html?item_id=266' 

这将返回正确的值。

+0

不幸的是,这是不正确的。例如,还是有区别的。 http://www.o2thinkbig.de/projekt/2105 - total_count为345,而类似的按钮则为418. 有关于此的错误报告:https://developers.facebook.com/bugs/169035286562837/ – blueyed