I'm using Facebook Likes in my site. I have a gallery page which shows picture/video data and the number of likes for that data. Each piece of data has it's own URL which can be liked.
However, I want to display the number of likes in the gallery navigation, but I don't want people to be able to "like" from the navigation. Is there a way to display the number of likes without the button?
The only way I've seen so far is using the link stat "table" from FQL: http://developers.facebook.com/docs/reference/fql/link_stat/
Is there an easier way because this seems like a fair amount of work to implement.
Clicking Like below a post on Facebook is a way to let people know that you enjoy it without leaving a comment. Just like a comment, anyone who can see the post can see that you liked it. For example, if you click Like below a friend's video: People who can see the video will be able to see that you liked it.
Under 'Preferences,' tap 'Reaction preferences. ' 4. To hide Likes and other reactions on posts from other accounts, tap the toggle for 'On posts from others.
"We are removing Likes and focusing on Followers to simplify the way people connect with their favourite Pages," Facebook said about the redesign.
Facebook announced it is “removing 'Likes' and focusing on 'Followers' to simplify the way people connect with their favorite Pages.
You can :
1) collect the number of likes through the facebook graph yourself, save them in a DB and then display it on your own without FB.
Example : http://graph.facebook.com/http://www.huffingtonpost.com/
Or better : http://graph.facebook.com/http%3A%2F%2Fwww.huffingtonpost.com%2F
Which 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 thus "likes": 15,
For some ressources you will need an access token and url encode your url if necessary, as it could lead to problems with complex urls.
2) Display the like button in iframe version and put another div on top so that user cannot interact with it, but I wouldn't recommend that as It might frustrate your user when he will try to like. (Users are accustomed to the fact that they can click on this)
I guess a third option would be to fetch the number of like in Javascript on the client each time your display the page also using the graph api
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With