[英]Facebook Actionscript Api no Error Feedback Messages
我正在使用facebook-actionscript-api開發一個小型移動項目。
一切正常,我基本上是使用示例文件中的代碼片段。 但是我沒有從傳遞給回調函數的fail對象收到反饋消息或描述。
private function handlePost ( result : Object, fail : Object ) : void {
if(result) {
trace("POSTED");
} else {
trace( fail ); // returns [object Object]
trace( fail[0] ); // returns undefined
trace( JSON.encode(fail) ); // returns nothing ''
}
}
如何調試錯誤? 這里有錯誤嗎? 我正在使用最新版本(1.8.1)。
private function handlePost ( result : Object, fail : Object ) : void {
if(result) {
trace("POSTED");
} else {
trace("Login Failed");
trace('code: '+fail.error.code);
trace('message: '+fail.error.message);
trace('type: '+fail.error.type);
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.