Facebook Like button on website

Kornowski

VIP Member
I'm trying to add a 'Like' button on my website, so that people are able to like and view my Facebook page to stay up to date.

I've used the Facebook Developer's site to generate the code for the button.

The page I'm trying to set it up for is this;
http://www.facebook.com/pages/Daniel-Piercy-Media/194196573930505/

When I generate the code, I'm given two options; either 'iFrame'
Code:
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FDaniel-Piercy-Media%2F194196573930505%2F&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=dark&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>

or 'XFBML'
Code:
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http://www.facebook.com/pages/Daniel-Piercy-Media/194196573930505/" show_faces="false" width="450" colorscheme="dark"></fb:like>


I've copy and pasted the code directly into Dreamweaver and neither of them work. Well, they work when I test them locally. So I paste the code in and hit F12 to preview and it works! However, when I upload it to my host and view it online, it doesn't; I don't get it.

Here's the site I want it to appear on;
www.danielpiercy-media.co.uk

Any help is much appreciated :)
 
Code:
  </map>

<br>
  <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http://www.facebook.com/pages/Daniel-Piercy-Media/194196573930505/" show_faces="false" width="450" colorscheme="dark"></fb:like>
You never closed your last map so that's what I did first. This should sort it out if you put it before your </body> tag
Also I tried it and the link works a treat, Try getting someone else to try the link to see if it works for them
 
Thanks, man.

For some reason the host wasn't allowing it, so I've changed hosts and it's working now! Thanks again.
 
Back
Top