Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Trying to add Facebook like button to site

Hi


I'm having a bit of a nightmare


I'm trying to add a Facebook like button with a direct link to like my facebook page


I have read several posts on here regarding this saying how easy it is just copy & paste the code onto a html widget in iWeb


Nothing I try seems to work


I'm copying or have copied all the code into the html snippet but no matter what i try i cannot get it to work


I noticed that most of the posts on this are a bit old 2010 ETC


Has there been a change since these posts & has anyone managed to do it recently


Any help here wold be great


Thank you

MacBook Pro, OS X Mountain Lion (10.8.2)

Posted on Nov 21, 2012 4:16 PM

Reply
5 replies

Nov 22, 2012 3:19 PM in response to Roddy

Hi Roddy thank you for your help


OK Ive followed those instructions the only thing thats a bit vague when you copy the 2nd part of code do you put it straight after the </srcipt> or a line below ?


Either way i have tried doing both withot any success it does create a box which makes my page super long with a massive empty space but still no button


Does the fact my site has a black background have anything to do with why i cant see the like button


Thank you

Nov 22, 2012 6:43 PM in response to Roddy

Hi Roddy


It all of a sudden started working


only thing now is its showing the photo's of the people who have liked so far I de selected that option all i want is just the like button


also for some reason the hight is 10035px high i can resize theres nothing in the code that sets the hight


Heres the code i'm using


<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="http://connect.facebook.net/en_GB/all.js#xfbml=1";

fjs.parentNode.insertBefore(js, fjs);

}(document, 'script', 'facebook-jssdk'));</script>


<div class="fb-like" data-href="http://www.facebook.com/pages/InTheBox-Training/140193679461558?ref=hl" data-send="false" data-width="450" data-show-faces="false"></div>


Web URL


http://www.intheboxtraining.com


Thanks

Trying to add Facebook like button to site

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.