Facebook 点赞按钮被错误地视为一个按钮
我在我的 WP 博客上实现了“like”按钮,但由于某种原因,其中一些(不是全部)被解释为相同的按钮。如果我按赞,我也会喜欢那些被解释为相同的。我不明白为什么。 Facebook 上的分享内容还存在其他几个问题,但我认为这些问题都与此相关。
它工作了几天,效果很好,然后每次我按下“喜欢”按钮时,我就开始收到错误。在摆弄 og:type 值后,错误消失了,但现在我得到了这种奇怪的行为。
我的实现非常简单,我真的想不出任何原因:
<div class="fb-like"><fb:like href="<?php the_permalink();?>" show_faces="true" width="600" font="arial"></fb:like></div>
我发现行为会根据我在标头部分中定义的 og:type 发生变化,但没有值产生正确的结果。
该博客可以在 http://blog.parkov.dk/ 上查看(不过是丹麦语)。
有人有这方面的经验吗?
I've implemented the like button on my WP blog, but for some reason some of them (not all of them) are interpreted as being the same button. If I press like, I will also like the ones that is interpreted as the same. I can't figure out why. There are several other problems with what is shared on Facebook, but I think those problems are connected to this one.
It worked great for a few days, then I started getting an error each time I pressed the like button. After fiddling with the og:type value the error disappeared, but instead now I get this strange behaviour.
My implementation is so simple, I can't really think of any causes:
<div class="fb-like"><fb:like href="<?php the_permalink();?>" show_faces="true" width="600" font="arial"></fb:like></div>
I've found that the behaviour changes depending on what og:type I define in the header section, but with no value producing the correct result.
the blog can be seen at http://blog.parkov.dk/ (in Danish, though).
Anyone has experience with this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
删除
href
参数并使用 Open Graph 元标记< /a>.我发现您正在使用它们,但缺少一些必需的标签:og:title
og:url
重要说明 :
对于主页,请使用
blog
作为og:type
!Remove the
href
parameter and instead use the Open Graph meta tags. I see that you are using them but some required tags are missing:og:title
og:url
IMPORTANT NOTE:
For the homepage use
blog
asog:type
!