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

how do i get my facebook like button on my website?

how do i get my facebook like button on my website?

a lot of people gave me some html codes for my iweb site, but none of them works.

Posted on Oct 26, 2011 4:40 AM

Reply
44 replies

Oct 26, 2011 7:54 AM in response to sgaddum

The Facebook button code is incompatible with the iWeb Snippet since the URL uses html attributes. You need to convert this before it will work.


A button code looks something like this when converted...


<iframe src="http://www.facebook.com/plugins/likebox.php?href=http://www.facebook.com/pages/y ourname/88301317903&width=292&colorscheme=light&show_fa ces=false&amp;border_color&amp;stream=true&amp;header=false&amp;height=395" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:395px;" allowTransparency="true"></iframe>


You need to replace "yourname" and "your facebook number" in this URL...


http://www.facebook.com/pages/yourname/88333317999

Nov 29, 2011 4:54 PM in response to Cyclosaurus

HA HA thank for this, But this means nothing to me. Bit over my head, What your saying , is that I have to take the code given for my domain by face book . And then convert it . By adding the above?


Or just placing the code in place writtin in black. Sory Dyslexic , And confudsed.


Could not post it to be? www.amphibious-photographer.com


the code above where I put my name in . what do I do with that . Put in in the snippet? is that all I need to do.

Nov 29, 2011 6:05 PM in response to peejay33

As Cyclosaurus has pointed out, the HTML5 and XFBML codes will work if changed like this...


<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_US/all.js#xfbml=1";

fjs.parentNode.insertBefore(js, fjs);

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



<fb:comments href="http://www.ezmacwebdesign.com" num_posts="2" width="500"></fb:comments>

Nov 29, 2011 7:09 PM in response to Roddy

http://www.facebook.com/pages/GaryBridger/10150306099126883 this is my corrected code .


What do I need to change here?


<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>

Nov 29, 2011 7:16 PM in response to diveactive

I have updated the instructions here...


http://www.iwebformusicians.com/Search-Engine-Optimization/Inbound-Link.html



Change your code to this...


<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>

Nov 29, 2011 7:31 PM in response to Roddy

Ok thaks I did that took that code cut and past it in. apply and nothing.


The other exaple code above works But thats a comment code not a like code.


And i guess not the same domain.


Tell me what changes , as all I can see is an http was added. is there any thing els required.?


if its conveniant you can skpe me diveactive. pc to pc call.

Nov 29, 2011 7:54 PM in response to diveactive

Try this...


<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_US/all.js#xfbml=1";

fjs.parentNode.insertBefore(js, fjs);

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

<div class="fb-like" data-href="www.amphibios-photographer.com" data-send="true" data-width="450" data-show-faces="true"></div>

how do i get my facebook like button on my website?

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