Facebook Like a button, can it be read-only?

I use Facebook Likes on my website. I have a gallery page that shows the image / video data and the number of likes for this data. Each piece of data has its own URL, which you may like.

However, I want to display the number of likes in the gallery navigation, but I do not want people to be able to “love” the navigation. Is there a way to display the number of likes without a button?

The only way I've seen so far is to use the stat reference table from the FQL table: http://developers.facebook.com/docs/reference/fql/link_stat/

Is there an easier way because this seems like enough work to implement.

+5
source share
1 answer

You can:

1) collect the amount you like through facebook graphics yourself, save them in the database, and then display them yourself without FB.

Example: http://graph.facebook.com/http://www.huffingtonpost.com/

Or better: http://graph.facebook.com/http%3A%2F%2Fwww.huffingtonpost.com%2F

What returns:

{
   "id": "141265189223470",
   "name": "The Huffington Post - Breaking News and Opinion",
   "picture": "http://profile.ak.fbcdn.net/hprofile-ak-snc4/188056_141265189223470_1131566_s.jpg",
   "link": "http://www.huffingtonpost.com/",
   "category": "Personal blog",
   "likes": 15,
   "website": "http://www.huffingtonpost.com/",
   "description": "Breaking News and Opinion"
}

And so “like”: 15,

For some ressources, you will need an access token and url, if necessary, to encode your URL, as this can lead to problems with complex URLs.

2) iframe div , , , , . ( , )

, , Javascript , api

+5

All Articles