Mobile app version of vmapp.org
Login or Join
Kevin317

: List of Facebook liked pages I have a site with a lot of pages that have a Facebook like button. Is there a way to get all the pages that were liked with the number of likes?

@Kevin317

Posted in: #Facebook #Like

I have a site with a lot of pages that have a Facebook like button.

Is there a way to get all the pages that were liked with the number of likes?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kevin317

1 Comments

Sorted by latest first Latest Oldest Best

 

@Nimeshi995

This question has been asked a few times on Stack Overflow and is best suited on their since it requires coding via Facebooks API, Thanks to Rink for pointing out the below information.


SOURCE:
How to get number of likes from Facebook Button

There are two ways to get the number of facebook likes.

Graph API


graph.facebook.com/?ids=http%3a%2f%2ffacebook.com
Result is JSON: (For some reason 'likes' are called 'shares')

{
"http://facebook.com": {
"id": "http://facebook.com",
"shares": 35641554,
"comments": 339
}
}



FQL

api.facebook.com/method/fql.query?query=select+total_count+from+link_stat+where+url= http://facebook.com"


Result:

<?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>
<total_count>35641554</total_count>
</link_stat>
</fql_query_response>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme