javascript facebook喜欢按钮不起作用

时间:2012-09-21 03:40:38

标签: javascript facebook

在我的网站上我有一个像facebook一样的按钮(喜欢我的脸书页面)。它一直工作到今天。当有人点击像页面一样的喜欢按钮,然后立即切换到不喜欢页面的先前模式。在我的主页面上,我收到此错误

There was an error liking the page. If you are the page owner, please try running your page through the linter on the Facebook devsite (https://developers.facebook.com/tools/lint/) and fixing any errors.

我试图扫描我的页面,但我没有错误也没有警告。 我也尝试在这里制作一个新的按钮https://developers.facebook.com/docs/reference/plugins/like/ 但是我试过的每一页(甚至不是我的页面),例如(http://www.facebook.com/americanexpress),我仍然遇到同样的问题(你可以在Facebook上看到问题,而无需将代码粘贴到你的页面)。 facebook改变了任何代码或什么? 我是否需要更改任何代码,例如我的java脚本?

1 个答案:

答案 0 :(得分:0)

试试这个:

<div class="fb-like" data-href="https://www.facebook.com/ILoveItWhenGirlsLookAtTheirOwnBoobs" data-send="true" data-layout="button_count" data-width="450" data-show-faces="true"></div>

它在我的博客上正常运行。你可以在这里查看我的博客:

http://mostvisitedbloginasia.blogspot.com/

对于您的网页,只需更改网页的用户名即可。它看起来像:

<div class="fb-like" data-href="https://www.facebook.com/YOUR-USER-NAME" data-send="true" data-layout="button_count" data-width="450" data-show-faces="true"></div>

它会正常工作!

相关问题