,大家下午好,Edge.remove返回的錯誤
,因爲我已經在我的比賽申請訂閱的edge.remove功能有點問題,我送你這條消息。
在我的應用程序中,我想傾聽喜歡和不喜歡的按鈕,將它保存在數據庫中以建立比賽排名。但是我有一個不喜歡的功能問題,它影響了我的排名。當我喜歡這個圖像時,它是可以工作的,但是當我不喜歡之前的按鈕時,它會返回一個鏈接,它被稱爲「錯誤」出現以下錯誤:
「頁面出現了錯誤,如果您是網頁所有者,請嘗試通過Facebook devsite上的linter運行您的頁面(https://developers.facebook.com/tools/ lint /)並修復任何錯誤。「
在螢火,臉譜由url POST返回以下代碼http://www.facebook.com/ajax/connect/external_node_connect.php?__a=1呼叫:
爲(;;){ 「__ AR」:1, 「有效載荷」:{ 「requires_login」:假」成功「:false,」already_connected「:false,」is_admin「:false,」show_error「:true,」error_info「:{」brief「:」發生錯誤。「,」full「:」如果你是網頁所有者,請嘗試在Facebook devsite上通過linter運行你的頁面(https://developers.facebook.com/tools/lint/)並修復任何錯誤。「,」errorUri「:」/ connect + connect_to_node_error.php?title =發生+錯誤+ & body = There + was + an + error + liking + the + page。+ if + you + are + the + page + owner \ u00252C + please + try +運行+你的+網頁+次粗糙的+ + +棉短絨+上的實+ + + devsite \ u002528https \ u00253A \ u00252F \ u00252Fdevelopers.facebook.com \ u00252Ftools \ u00252Flint \ u00252F \ u002529 +和+固定+任何+錯誤。 &哈希= AQBOwKwXHdofUaSJ「}}}
我的代碼是:提前
window.fbAsyncInit = function() {
FB.init({
appId : '<?= APP_ID; ?>',
status : true,
cookie : true,
xfbml : true
});
FB.Canvas.setAutoResize();
FB.Event.subscribe('edge.create',
function(href, widget) {
alert(href);
//$('a').bind('click',false);
//liketoggle(href);
}
);
FB.Event.subscribe('edge.remove',
function(href, widget) {
alert('href');
//$('a').bind('click',false);
//liketoggle(href);
}
);
};
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/fr_FR/all.js#xfbml=1&appId=<?= APP_ID; ?>";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
感謝和我的英語不好對不起,我是法國人;)
注:今天的工作!這當然是Facebook昨天的錯誤,感謝您的幫助! ;) –