1

这是我使用的功能:

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) {
        }
    });
}

我已经在权限设置中使用了以下范围:{scope:'email, publish_stream, publish_actions, read_stream, manage_pages'}

我收到以下回复:

(#200) The user hasn't authorized the application to perform this action
4

0 回答 0