2015-09-11 81 views
0

我怎样才能获得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

FB.Event.subscribe让。

试着这么做

FB.Event.subscribe('message.send', function(sharedURL) { // your code here });

+0

它不工作 – dude

+0

你有你正在使用的代码的完整的例子吗? –