Search code examples
facebookiframefacebook-like

embeding a facebook 'like' button


I Know this is super simple but for the life of me i cant seem to figure out why it refuses to work.. if use the like plugin generator http://developers.facebook.com/docs/reference/plugins/like/ and from that got this iframe <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.lightandspace.co.uk%2F&amp;send=false&amp;layout=standard&amp;width=400&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:400px; height:35px;" allowTransparency="true"></iframe>

what happens is that it says it cant load the page as if the link is broken but i dont know why ??

Ive also tryed the js/html5 method but that just fails to display at all.

any helps much apreciated


Solution

  • In your iframe code:

    <iframe src="//www.facebook.com/
    

    Are you sure that isn't supposed to be:

    <iframe src="http://www.facebook.com/