Facebook 点赞按钮停止工作
几天前,我的 Facebook 应用程序页面上的“赞”按钮开始出现问题。它已经工作了近 6 个月,但昨天停止工作了。当我登录自己的 Facebook 帐户时,我会看到“点赞”计数,但如果我注销或以尚未“点赞”我的应用程序的任何人身份登录,则该功能不起作用。他们看到这个按钮就好像还没有人“喜欢”它一样,当他们点击它时,它似乎每次都会重置。
我想要点赞的 URL 是一个 APP URL。我的代码粘贴在下面。
<iframe src="http://www.facebook.com/plugins/like.php?app_id={myAppId}&href={myAppURL}&send=false&layout=button_count&width=450&show_faces=false&action=like&colorscheme=dark&font&height=21"
scrolling="no" frameborder="0"
style="border:none; overflow:hidden; width:450px; height:21px;"
allowTransparency="true">
</iframe>
我尝试了这段代码的几个变体,但我似乎无法让它工作。即使当我进入 Facebook 上生成“赞”按钮代码的页面并为其提供我的 URL 时,我也会看到同样的问题。当我单击按钮时,按钮右侧会显示红色文本“错误”。我在 Mashable 上看过一篇文章,大约一年前,有些人也遇到过同样的问题......
I started having problems a couple of days ago with the Like button on my Facebook application page. It has been working for almost 6 months but stopped working yesterday. When I am logged into my own Facebook account I see the 'Like' count, but if I am logged out or logged in as anyone who hasn't already 'Liked' my app, it doesn't work. They see the button as if nobody has 'liked' it yet and when they click it, it seems to reset every time.
The URL I am trying to like is an APP URL. My code is pasted below.
<iframe src="http://www.facebook.com/plugins/like.php?app_id={myAppId}&href={myAppURL}&send=false&layout=button_count&width=450&show_faces=false&action=like&colorscheme=dark&font&height=21"
scrolling="no" frameborder="0"
style="border:none; overflow:hidden; width:450px; height:21px;"
allowTransparency="true">
</iframe>
I've tried a few variants of this code, but I can't seem to get it to work. Even when I go to the page that generates 'Like' button code on Facebook and give it my URL, I see the same problem. When I click the button I get the text "Error" in red to the right of the button. I've seen an article on Mashable that this same problem happened about a year ago for some people...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试用
//
替换src
属性的http://
部分,因此它应该如下所示:
Try replacing the
http://
part of thesrc
attribute with//
So it should look like this: