How to create a facebook likes page?

How can I create a list of pages on my site with the most Facebook likes?

  • Say I have a Facebook app where the user signs up and completes some activity. They have the their own page hosted on our website summarizing their activity, which they can invite people to like. I want to create a table of all the pages ranked on order of likes. Is there a way to get this data through Facebook`s API?

  • Answer:

    AFAIK Facebook doesn't have a function to list the "most liked pages in site X". Not even sure they have any correlation in their graph between pages of a site, unless you have an app they "belong" to. (E.g. when you let users share pages via your Facebook app, that links those shares; but a shared base URL doesn't get stored or associated separately.)So why not do it the other way round, and store the number of likes for each page on your own systems? The number of likes for an individual page is easy to get, and if you keep a table of it yourself, it should then be fairly easy to query for the table, but query it from your own site. (All of this assuming you have a high degree of control over your site/CMS and the repository/database behind it, and the knowledge how to add/change code.)

Adriaan Bloem at Quora Visit the source

Was this solution helpful to you?

Other answers

Yes, it is totally possible. I mean, if you only want to use general "page likes" and not individual post likes, it is not that hard. You may want to see this example script: http://www.techrecite.com/get-facebook-likes-count-of-a-page-using-graph-api/ you just need to fork that code and adjust it to your needs.

Fernando Aguilar

It should be possible via the API. There is also this Recommendations social plugin: https://developers.facebook.com/docs/plugins/recommendations. It's provided by Facebook and lists the most recommended/liked content associated with your domain or app ID.

Siam Choudhury

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.