Removes handlers on events so that it no longer invokes your callback when the event fires.
// Attach the handler using FB.Event.subscribe
FB.Event.subscribe('edge.create', handleResponse);
// Function to handle the response
var handleResponse = function(response) {
alert ('You liked the URL: ' + response);
};
// At some point, you no longer want to be notified, and unsubscribe
FB.Event.unsubscribe('edge.create', handleResponse);
FB.Event.Unsubscribe is the opposite event to FB.Event.subscribe.
You must call FB.Event.subscribe prior to calling FB.Event.unsubscibe.
| Name | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| cb | Function | The handler function. |