Get Facebook “Like” count for every page on my domain

前端 未结 8 871
孤独总比滥情好
孤独总比滥情好 2020-12-07 13:35

I have integrated the Facebook \"Like\" button into a lot of pages in my site. I want to display the most \"Liked\" pages on my site in a list, but I can\'t figure out how

8条回答
  •  时光说笑
    2020-12-07 14:26

    Apparently there's no 'LIKE' in FQL. Which was my first suggestion..

    Though you can use the "IN" operator, like so:

    SELECT share_count, like_count, comment_count, total_count
    FROM link_stat
    WHERE "http://www.mysite.com/" IN url
    ORDER BY like_count
    LIMIT 10;

提交回复
热议问题