如何解决?当我成功登录后尝试将照片发布到我的Facebook墙上时会发生这种情况。
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/>", "\n")
}, function(response) {
console.log(response);
console.log('successful response ..successfully posted');
$(".inviteshare .sendingmsg").hide();
alert("Successfully posted on your Facebook wall");
});
}