我用Facebook的like按钮得到了一些奇怪的结果(无论如何对我来说都很奇怪)我在我的网站的几个页面上都有like按钮,但每个按钮上显示的点赞数量总是相同的-如果页面没有被点赞,如果页面已经被点赞,则显示网站本身的总点赞数量。

在用户仪表板上,我允许他们“喜欢”我的Facebook页面,这是我使用的iframe:

<iframe src="//www.facebook.com/plugins/like.php?
href=http://www.facebook.com/myfacebookpage&amp;send=false&amp;
layout=button_count&amp;width=100&amp;show_faces=true&amp;action=like&amp;
colorscheme=light&amp;font&amp;height=21&amp;appId={MY ID HERE}"
scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px;
height:20px;" allowtransparency="true"></iframe>

然后在用户的个人资料页面上,我允许访问者喜欢每个个人资料页面。

<iframe src="//www.facebook.com/plugins/like.php?
href=http%3A%2F%2Fmywebsite.com%2Fjohn&amp;send=false&amp;layout=button_count
&amp;width=100&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;
font&amp;height=21&amp;appId={MY ID HERE}" scrolling="no" frameborder="0"
style="border:none; overflow:hidden; width:100px; height:20px;"
allowtransparency="true"></iframe>
<iframe src="//www.facebook.com/plugins/like.php?
href=http%3A%2F%2Fmywebsite.com%2Fbilly&amp;send=false&amp;layout=button_count&amp;
width=100&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;
height=21&amp;appId={MY ID HERE}" scrolling="no" frameborder="0" style="border:none;
overflow:hidden; width:100px; height:20px;"` allowtransparency="true"></iframe>

正如你所看到的,我为每个人传递了不同的href值,所以就我所看到的(以及在文档中读到的)而言,我做的是正确的……我已经研究了好几个小时了,没有人叫joy。有没有人遇到过类似的情况?