如何获得facebook发送按钮的响应,无论是成功还是失败
FB.init({
appId : 'XXXXXXXXXXXXX',
status : false, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true, // parse XFBML add it here
oauth : true
});
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
答案 0 :(得分:0)
FB.Event.subscribe
会让您获取该数据。
尝试类似
的内容 FB.Event.subscribe('message.send', function(sharedURL) {
// your code here
});