Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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?

share|improve this question

closed as off-topic by Simon Hayter Jul 9 '13 at 19:01

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on general programming problems are off-topic here, but can be asked on Stack Overflow." – Simon Hayter
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 1 down vote accepted

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

Result is JSON: (For some reason 'likes' are called 'shares')

   "": {
      "id": "",
      "shares": 35641554,
      "comments": 339
  1. FQL""


<?xml version="1.0" encoding="UTF-8"?>
<fql_query_response xmlns="" xmlns:xsi="" list="true">
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.