如何使用facebook api删除我的群贴?
这是我使用的函数:如何使用facebook api删除我的群贴?,facebook,facebook-javascript-sdk,Facebook,Facebook Javascript Sdk,这是我使用的函数: function deletePost(post_id){ $.confirm({ text: "Are you sure want to delete this post?", confirm: function(button) { var params3 = {}; params3['access_token'] = 'MY_ACCESS_TOKEN';
function deletePost(post_id){
$.confirm({
text: "Are you sure want to delete this post?",
confirm: function(button) {
var params3 = {};
params3['access_token'] = 'MY_ACCESS_TOKEN';
params3['method'] = 'DELETE';
FB.api('/' + post_id + '', 'DELETE', params3,
function(response) {
console.log(response);
if(response.error.message){
alert(response.error.message);
}
else{
alert("Successfully Deleted!");
}
});
},
cancel: function(button) {
}
});
}
我已在权限设置中使用了以下作用域:
{范围:'email,publish\u stream,publish\u actions,read\u stream,manage\u page'}
我得到以下回应:
(#200) The user hasn't authorized the application to perform this action
您是否使用应用程序本身创建了对象(post)?是!我从我的应用程序创建了帖子?