Facebook like button doesn't appear

六月ゝ 毕业季﹏ 提交于 2019-12-24 12:01:47

问题


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>

回答1:


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




回答2:


Use the official code generator to get a working code.




回答3:


I tried linting your URL and the linter doesn't like your page:

http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2F3eesho.com%2Fmagazine%2Findex.html

The linter seems to like it.

I went to the page in FF and chrome, and both worked fine.

Maybe this was a transient problem....are you still seeing issues?



来源:https://stackoverflow.com/questions/9054078/facebook-like-button-doesnt-appear

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!