Facebook 向我抛出未知错误:
“出现错误。请稍后再试。”
Firefox 控制台中没有任何错误。
我的 JavaScript 源代码是:
(function () {
function requestCallback(response) {
var message = document.getElementById("success_message");
if (message) {
if (typeof response.error_code != 'undefined') {
message.innerHTML = 'Wrong';
} else {
message.innerHTML = 'Success';
}
}
}
var vkInvite = function () {
if (typeof FB == 'undefined') {
setTimeout(vkInvite, 100);
} else {
console.log("Try to use facebook... FB.init");
FB._initialized = false;
FB.init({
appId: 'XXXXXXXXXXXXXX',
frictionlessRequests: true
});
(function sendRequestViaMultiFriendSelector() {
console.log("Try to use facebook... FB.ui");
FB.ui({
method: 'apprequests',
message: 'Message.'
}, requestCallback);
})();
}
}();
})();
如何诊断 Facebook 框架的输出?