Reputation: 1010
I have installed the Like Box in my blog, and I want to know if the user already like my page. I want to implement something like this to my reader because I want to offer them hidden contents if they already liked my page.
Is there an event where I will detect if the user already liked the page in the Like Box?
Upvotes: 1
Views: 9264
Reputation: 1321
As Kendall points out, the edge.create event only fires if they like the page while you're listening for it.
Here's another approach that parses the $_REQUEST['signed_request'] parameter that Facebook sends to every page tab app. One of the attributes encoded in the signed_request is if the user has liked the page or not.
Pretty slick.
Upvotes: 2
Reputation: 1378
If you are using the XFBML version of the Like Box, you can subscribe to the 'edge.create' event through FB.Event.subscribe.
Upvotes: 2