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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -