Facebook的按钮消失 [英] Facebook like button disappears

查看:169
本文介绍了Facebook的按钮消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站上的Facebook Like按钮出现问题:
添加了此代码(由facebook提供)

 < iframe allowtransparency =trueframeBorder =0src =//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 = 20style =border:none; overflow:hidden; width:450px; height:20px;> 

按钮可以在任何页面中正确显示,因为在某些页面上几天后iframe会保留因为Facebook不再发送按钮代码。



我试图解决最终的网址问题,并改变了一些网址,我注意到按钮显示在新的网址,



这是所有来自Facebook页面的代码,没有Like按钮被加载:

 < html lang =itid =facebookclass =no_js> 
< head>
< meta charset =utf-8/>
< meta name =robotscontent =noodp,noydir/>
< meta name =referrercontent =defaultid =meta_referrer/>
< meta name =descriptioncontent =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 dipiù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_HiddenContainerstyle =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, 用户: XXXXXXXXXXXXXXX});< /脚本>
< script>
< / script>
< / body>
< / html>

最明显的区别在于:

 < html lang =itid =facebookclass =no_js> 

在工作页面上有class =。
在工作页面中还有很多代码...



任何人都可以帮忙或给我一个提示让我明白发生了什么吗?






感谢您的回答,但这不是解决方案,这是facebook提供的代码,正如我所说的那样网址被创建,并且仅在某些页面上,几天后停止工作。
无论如何,我在facebook开发人员网站发现这是一个中等优先级的已知错误。

解决方案

看来这可能是这个错误:

http://developers.facebook.com/bugs/335818753176892/



http://developers.facebook.com/bugs/130242697118406/



基本上,如果您正在创建Like按钮的Facebook应用程序是:


  • 在'sandbox'模式下,或


$ b $上生成的Like按钮不同的域b

然后可能会出现此问题。这两项都可以通过 https://developers.facebook.com/apps/ 和选择有问题的应用程序。



在我的情况中,我最初将App URL设置为 localhost 以供开发。我添加了正确的URL以及我们使用的子域,但尚未开始工作。我会随着更多信息更新这个答案...



更新



尽管建议对应用设置进行更改,但这种方式无效。我现在正在研究与其他异步调用有关的问题:



http://developers.facebook.com/bugs/353458578076232?browse=search_506192588df614017400920



看起来其他人都有同样的问题:

http:/ / /developers.facebook.com/bugs/498181603534748?browse=search_506192588df614017400920


I have a problem with Facebook Like button in my site: adding this code (provided by 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;">

button is correctly shown in any page as it is created, after a few days on some pages iframe remains empty because Facebook don't send the button code anymore.

I tried to solve eventual url problems and changing some urls I noticed that the button shows in new urls, after few days some page looses button.

This is all the code coming from Facebook after page without Like button is loaded:

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

The moste evident difference is in:

<html lang="it" id="facebook" class="no_js">    

that in working pages has class="". In working pages there's also a lot of more code...

Can anybody help or give a hint to let me understand what's going on?


Thanks for the answer, but that's not the solution, this is the code as provided by facebook and as I said works at the time url is created and, only for some pages, stops working after few days. Anyway I found in facebook developer site that's a known bug with medium priority.

解决方案

It appears this might be this bug:

http://developers.facebook.com/bugs/335818753176892/

http://developers.facebook.com/bugs/130242697118406/

Essentially, if the Facebook App you are creating the Like button with is:

  • In 'sandbox' mode, or
  • Has a different domain to the one the Like button is being generated on

Then this problem can appear. Both of these can be changed by going to https://developers.facebook.com/apps/ and selecting the app in question.

In my case, I had originally set the App URL to localhost for development. I have added the correct URL, along with the subdomains we use, but as yet it has not started working again. I'll update this answer with more information as I go...

Update

This isn't working, despite the recommended changes to the App settings. I am now looking into this issue with other async calls:

http://developers.facebook.com/bugs/353458578076232?browse=search_506192588df614017400920

And it looks like others are having the same problem:

http://developers.facebook.com/bugs/498181603534748?browse=search_506192588df614017400920

这篇关于Facebook的按钮消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆