【发布时间】:2012-10-31 13:32:02
【问题描述】:
我在个人网页上添加了一些点赞按钮:edoardo.torreggiani.net,但只有一个按钮可以正常工作。
这工作(主页):
<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>
这不起作用(主页上的单个帖子):
<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>
当我点击不起作用的点赞按钮时,我会获得响应:
for (;;);{"__ar":1,"payload":null,"jsmods":{"require":[["Plugin","disconnect",[],["http:\/\/edoardo.torreggiani.net\/home?post=5"]]]}}
工作和错误的唯一区别是 iframe src 中的 HREF 参数:错误的在查询字符串中有一个参数。
【问题讨论】: