我有以下功能(取自 facebook webhook 教程)用于将应用程序订阅到页面,但我希望发生相反的事情(取消订阅)。
我怎样才能做到这一点?我还没有在 JavaScript 中找到任何答案。
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);
// insert in DB
});
}