Jump to content

Facebook Like Button


mrbean

Recommended Posts

They give like 3 options for what type of button you want. That's nothing special, just one of the default ones. I don't know if you can actually customize it yourself, never really got into it much, but go look where they give you the code for the button.

Link to comment
Share on other sites

I am not sure if you have already tried this or not, but this is what I use to show how many likes for my button.

 

Put somewhere after the <body> 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>

 

Put this where the button should appear:

<div class="fb-like" data-href="FULLURLHERE" data-send="false" data-width="450" data-show-faces="false"></div>

 

Replace "FULLURLHERE" with your facebook page url.

There is also a facebook like button generator: https://developers.connect.facebook.com/docs/reference/plugins/like/

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.