Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook : How to show the Facebook page likes count and Like button to like the Facebook page?

Tags:

facebook

I have created a page "Education For All" in facebook. In my website i want to provide a like button to like this page not the url and also want to show the count of the Likes received for that page in website along with Like button. I have used "Add this", but it is showing the count of number of likes for the url. Can you suggest me any plugin ?

Any help will be appreciated...

like image 986
SHANib Avatar asked Jun 20 '12 10:06

SHANib


People also ask

How do I turn on the like button on my Facebook page?

Go to Settings › General, then click the Share tab. Enable the Facebook Like/Recommend button setting by clicking the “thumb up” Like icon.

Why doesn't my Facebook business page have a like button?

"We are removing Likes and focusing on Followers to simplify the way people connect with their favourite Pages," Facebook said about the redesign. The notable changes include a redesigned layout, News Feed, easy navigation, updated task-based admin controls, actionable insights, and safety features.

Why can't I see the likes on my Facebook page?

Keep in mind that you may not see the names of everyone who likes your Page because people can control who can see what they've liked. You'll only be able to see the names of people who publicly like your Page.


1 Answers

generate your facebook like button from here,

http://developers.facebook.com/docs/reference/plugins/like/

Please provide proper informations to get the proper code, or you can use the code below by following the instructions, just replace http://www.yoururl.com with the desired URL of the page which needs to be liked:-

1. Include the JavaScript SDK on your page once, ideally right after the opening tag.

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Place the code for your plugin wherever you want the plugin to appear on your page.

<div class="fb-like" data-href="http://www.yoururl.com" data-send="true" data-width="450" data-show-faces="true"></div>
like image 176
Subhajit Avatar answered Sep 28 '22 00:09

Subhajit