How to get the number of Likes in facebook like button?
Here is my scenario, I have five like buttons, I want to sort the buttons based on the number of likes. Is it possible?
You can get number of likes for any URL by running FQL on link_stat
table:
SELECT like_count, url FROM link_stat WHERE url IN("FIRST_SHARE_URL","SECOND_SHARE_URL") ORDER BY like_count
then display buttons in corresponding order.
There is a button_count
settings which once specified, will display the counts to the right of the button.
More Info:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.