简体   繁体   中英

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. 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? 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.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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