嗨,大家好我有问题 这里是代码
function fb_share(url, destination) {
FB.ui({
method: 'feed',
link: url,
},
function(response) {
if (response && !response.error_code) {
url = destination;
$.ajax({
url: url,
type: "POST",
dataType: "json",
contentType: "application/json"
}).done(function(response) {
if (response.status == 'ko') {
showMessageModal(response.title, response.message);
} else {
showMessageModal(response.title, response.message, response.goto, response.removeDOM, response.addDOM);
}
});
showMessageModal(response.title, response.message, response.goto, response.removeDOM, response.addDOM);
}
});
} {
scope: 'public_profile,email,user_friends'
};