“(#200)需要扩展权限:publish_actions”

How to fix it? it happens when I try to post the photo to my facebook wall after the successful login.

FB.login(function(response) {
    if (response.authResponse) {
        shareOnFacebook();
    }
}, {
    scope: 'publish_actions'
});

function shareOnFacebook() {
    FB.api('/me/photos/', 'post', {
        url: "<?php echo $fb_pic;?>",
        message: $("#fb_message").text().replace("<br/>", "
")
    }, function(response) {
        console.log(response);
        console.log('successful response ..successfully posted');
        $(".inviteshare .sendingmsg").hide();
        alert("Successfully posted on your Facebook wall");
    });
}