我在我的网站上使用Facebook点赞按钮时遇到了问题:
添加以下代码(由Facebook提供):
最明显的区别在于:
<iframe allowtransparency="true" frameBorder="0" src="//www.facebook.com/plugins/like.php?href=http://my.site.com/folder/&send=false&layout=button_count&width=120&show_faces=false&action=like&colorscheme=light&font&height=20" style="border:none; overflow:hidden; width:450px; height:20px;">
我尝试解决可能存在的url问题并更改了一些url,我发现按钮在新的url中显示,在几天后,某些页面会丢失按钮。
这是加载没有“喜欢”按钮的页面后来自Facebook的所有代码:
<html lang="it" id="facebook" class="no_js">
<head>
<meta charset="utf-8"/>
<meta name="robots" content="noodp, noydir"/>
<meta name="referrer" content="default" id="meta_referrer"/>
<meta name="description" content=" Facebook è una piattaforma sociale che ti consente di connetterti con i tuoi amici e con chiunque lavori, studi e viva vicino a te. Puoi usare Facebook per rimanere in contatto con i tuoi amici, caricare tutte le foto che vuoi, pubblicare link e video o per saperne di più sulle persone che incontri."/>
<script/>
<title>Facebook</title>
<script>var onloadRegister_DEPRECATED=function(){},onafterloadRegister_DEPRECATED=function(){},ServerJSQueue={add:function(){}};
</script>
<style type="text/css"> div.fbNubFlyoutBody.scrollable{position:inherit}
</style>
<script>ServerJSQueue.add({"require":[["lowerDomain"],["Primer"]]});</script>
</head>
<body class="opera Locale_it_IT">
<div id="FB_HiddenContainer" style="position:absolute; top:-10000px; width:0px; height:0px;"/>
<script>function envFlush(a){function b(c){for(var d in a)c[d]=a[d];}if(window.requireLazy){requireLazy(['Env'],b);}else{Env=window.Env||{};b(Env);}}
envFlush ({"fb_dtsg":"XXXXXXXXXX","ajaxpipe_token":"XXXXXXXXXXXXXXXX","lhsh":"XXXXXXXXX","user":"XXXXXXXXXXXXXXX"});</script>
<script>
</script>
</body>
</html>
最明显的区别在于:
<html lang="it" id="facebook" class="no_js">
在工作页面中有class=""的代码。
有没有人能帮忙或者给一些提示让我理解发生了什么?
谢谢回答,但这不是解决方案,这是Facebook提供的代码,并且在创建URL时有效,只有一些页面在几天后停止工作。无论如何,我在Facebook开发者网站上找到了一个已知的中等优先级错误。