Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unlike event similar to edge.create

Via the Facebook javascript API, you can subscribe to the 'event.create' event to listen for when users "Like" something on a page via the Like Plugin. Is it possible to respond to the same user un-liking it as well? I don't see any events documented, wondering if this is a hidden feature.

like image 603
typeoneerror Avatar asked Nov 30 '22 05:11

typeoneerror


1 Answers

You can now subscribe to the “edge.remove" event to know when a user unlikes a page. For example:

FB.Event.subscribe('edge.remove', function(href, widget) {
  alert('You just unliked '+href);
});

Announcement: http://developers.facebook.com/blog/post/446/ documented at http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe

like image 103
J Starr Avatar answered Jan 06 '23 17:01

J Starr