php - facebook graph api determine if user likes url -
i want display different message if user logged in facebook , likes current page. understand:
fb.event.subscribe('edge.create', function(response) { // });
which fire when user likes page, when reload page how determine current page?
thanks!
i'm pretty sure cant want (in context).
take @ page : http://fbrell.com/fb.api/does-like
you'll see need user approve permission view likes.
it's huge security risk allow see 'likes' of user - current page. think can spoof current page , pretend page.
but...
what recommend set cookie own benefit (in javascript) when user 'likes' page. assuming you're getting large percentage of 'likes' page can safely correlate presence of cookie 'like'.
i've seen security exceptions doing this, seems work (at least in chrome).
Comments
Post a Comment