“喜欢”的人我的博主帖子?
我已将以下内容添加到我的 Blogger 模板中,以便在我的每个 Blogger 帖子上添加“赞”按钮:
<script>
document.write('<iframe src="http://www.facebook.com/plugins/like.php?href=<data:post.url/>&layout=standard&show_faces=false&width=380&action=like&font=trebuchet+ms&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe>');
</script>
我的问题是,我如何知道到底是谁按下了“赞”,因为它只显示喜欢我的帖子的人数?
谢谢你!
I have added the following to my Blogger template to add a Like button on each of my Blogger post:
<script>
document.write('<iframe src="http://www.facebook.com/plugins/like.php?href=<data:post.url/>&layout=standard&show_faces=false&width=380&action=like&font=trebuchet+ms&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe>');
</script>
My question is, how could I know who exactly has pressed Like as it only display the number of people who have liked my post?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Facebook 不提供 API 来获取喜欢某个页面的人员列表。这可能是由于隐私问题(尽管使用 Facebook,你永远不知道他们的理由,他们一直在出售你的个人信息)。
Facebook doesn't provide an API to get a list of people who like a page. This is probably due to privacy issues (although with Facebook you never know their reasonings, they sell your personal information all the time).
强制用户登录您的网站,然后才为他们显示“喜欢”按钮。当您听到
edge.create
事件触发时,记录已登录的用户。Force users to log into your website and only then display the like button for them. When you hear the
edge.create
event fire then log the user who is logged in.