Search code examples
facebookbuttonfacebook-like

Facebook like button doesn't appear


My facebook like button doesn't appear in Firefox, Chrome and IE !! I tried the 3 code options that facebook gives you to generate the button, but nothing!

Here is the code:

<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2F3eesho.com%2Fmagazine%2Findex.html&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>

</body>
</html>

Solution

  • <iframe src="//www.facebook.com/plugins/like.php?....
    

    change to :

    <iframe src="http://www.facebook.com/plugins/like.php?...
    OR
    <iframe src="https://www.facebook.com/plugins/like.php?...
    

    and it works perfectly...

    Might have to do with the way the different browsers guesses the protocol.