简体   繁体   English

如何确定用户是否点击了我网站上的 Facebook 赞按钮?

[英]How can I find out if a user has clicked the Facebook Like button on my website?

I want to include content on my website which will only be displayed if the user has clicked the Facebook Like button on the very same page.我想在我的网站上包含仅当用户单击同一页面上的 Facebook 赞按钮时才会显示的内容。 I see in the documentation there is the "edge.create" event which I can subscribe to but won't that only fire when the user likes the page the very first time?我在文档中看到有我可以订阅的“edge.create”事件,但它不会仅在用户第一次喜欢该页面时触发吗? If a user has already liked the page, I want him to be able to come back and download again without having to unlike and then like again.如果用户已经喜欢了该页面,我希望他能够回来并再次下载,而不必先点赞再点赞。

I also notice that this information can be queried through FQL and the likes but it's not clear what the auth requirements are for this.我还注意到可以通过 FQL 等方式查询此信息,但不清楚对此的身份验证要求是什么。

Is it possible to do this in some way without extra authentication?是否可以在没有额外身份验证的情况下以某种方式做到这一点? I want there to only be a single step for the user if he is already logged in.如果他已经登录,我希望用户只有一个步骤。

Check out these two links to see if they can help you:查看这两个链接,看看它们是否可以帮助您:

This one covers the edge.create: Display content after clicking Facebook Like button这个覆盖edge.create: 点击Facebook Like按钮后显示内容

This one covers if a person has already "liked" a page: How to check if a user likes my Facebook Page or URL using Facebook's API这涵盖了一个人是否已经“喜欢”了一个页面: 如何使用 Facebook 的 API 检查用户是否喜欢我的 Facebook 页面或 URL

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM