2012-01-29 57 views
1

我的Facebook like按鈕不會出現在Firefox,Chrome和IE瀏覽器! 我試過3個代碼選項,facebook讓你生成按鈕,但沒有!Facebook like按鈕不會出現

下面是代碼:

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

回答

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

變化:

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

和它的作品完美...

可能與不同的瀏覽器猜測協議的方式做。

+1

謝謝,它工作正常:) – lama 2012-01-29 21:03:45

0

使用official code generator得到一個工作代碼。

+1

但我用它!這是我用過的,我只是把它放在html代碼中。 – lama 2012-01-29 15:03:53