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

前端 未结 8 873
孤独总比滥情好
孤独总比滥情好 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:33

    1) create a fake user on fb which will likes only pages from your domain or some other way to save your urls in fb with possibility to get them by FQL later

    2) query:

    SELECT share_count, like_count, comment_count, total_count
        FROM link_stat WHERE url in (SELECT object_id FROM like WHERE user_id="fake_user_id")
    

    3) don`t forget about decrement on 1 each like count ;), sort and show

    0 讨论(0)
  • 2020-12-07 14:33

    If you just need the count from every page, Super Social Media Tracker could provide that.

    http://apps.microsoft.com/windows/en-US/app/super-social-media-tracker/a56c8971-42e2-4eb4-9b05-7e52233b4e1e

    But it's slow for massive pages.

    0 讨论(0)
提交回复
热议问题