Facebook Like Button不会增加 [英] Facebook Like Button doesn't increment
问题描述
我在个人网页上添加了一些类似的按钮: edoardo.torreggiani.net ,但只有一个按钮效果很好.
I've added some like buttons on my personal web page: edoardo.torreggiani.net but only one button works fine.
此工作(主页):
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fedoardo.torreggiani.net&send=false&layout=button_count&width=100&show_faces=false&action=like&colorscheme=light&font&height=21&locale=en_US" scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: 100px; height: 21px; " allowtransparency="true"></iframe>
这不起作用(首页上的单个帖子):
THIS DOESN'T WORK (single post in homepage):
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fedoardo.torreggiani.net%2Fhome%3Fpost%3D5&send=false&layout=button_count&width=100&show_faces=false&action=like&colorscheme=light&font&height=21&locale=en_US" scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: 100px; height: 21px; " allowtransparency="true"></iframe>
当我点击不起作用的赞"按钮时,我得到了响应:
When I click on the like button that doesn't work I obtain that response :
for (;;);{"__ar":1,"payload":null,"jsmods":{"require":[["Plugin","disconnect",[],["http:\/\/edoardo.torreggiani.net\/home?post=5"]]]}}
有效的参数和错误的参数之间的唯一区别是 iframe src 中的 HREF参数:错误的参数在查询字符串中具有一个参数.
The only difference between the working one and the wrong one is the HREF param in iframe src: the wrong one has one parameter in query string.
推荐答案
据我所知,每个博客文章都没有真实的页面.您的帖子链接就是这个:
As far as i can see, there is no real page for every blogpost. Your post link is this one:
http://edoardo.torreggiani.net/home?post=5
将其放在调试器中,您将看到错误:
Put that in the debugger and you will see errors:
https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fedoardo.torreggiani.net%2Fhome%3Fpost%3D5
URL"http://edoardo.torreggiani.net"的对象"website"类型无效,因为无法将属性"fb:admins"的给定值"10150406244527145"解析为"fbid"类型.
Object at URL 'http://edoardo.torreggiani.net' of type 'website' is invalid because the given value '10150406244527145' for property 'fb:admins' could not be parsed as type 'fbid'.
这篇关于Facebook Like Button不会增加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!