I have the following function (taken from a tutorial for facebook webcam) for subscribing to a page on a page, but I want the opposite to happen (unsubscribe).
How can i do this? I haven't found any answers in JavaScript yet.
function subscribeApp(page_id, page_access_token) { console.log('Subscribing page to app! ' + page_id); FB.api( '/' + page_id + '/subscribed_apps', 'post', {access_token: page_access_token}, function(response) { console.log('Successfully subscribed page', response);
source share