Help! Facebook Fan Page Like Button

Permalink 1 user found helpful
Hi,

I'm trying to add a Facebook Like button that links to my Facebook Fan Page. I tried the Facebook Like add on, but that simply has people liking my website rather than my Facebook Fan Page. Is there an easy way to do this? My Facebook Fan Page ishttp://www.facebook.com/jonahkue

 
misebaz replied on at Permalink Reply
misebaz
Hi,

I don't know if you ever got this working but I found after a searc on Google the following:

To be placed in a page with any Facebook html block.

<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_GB/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


Then this is the part that makes the magic (makes it appear on your page) {put in a seperate html block to above}.

<div class="fb-like-box" data-href="http://www.facebook.com/jonahkue" data-width="292" data-show-faces="false" data-stream="false" data-header="true"></div>


http://www.facebook.com/jonahkue... is where your name of your FB page should go.

"Data-Width" can be amended to your needs.

Hope this helps or to other people that may read this post.

Regards

Barry