2013-05-24 1 views
0

facebook-actionscript-api을 사용하여 모바일 프로젝트를 조금만 개발 중입니다.Facebook 동작 스크립트 Api no 오류 피드백 메시지

정상적으로 작동합니다. 기본적으로 예제 파일의 코드 조각을 사용하고 있습니다. 하지만 나는 콜백 함수에 전달 된 실패한 객체로부터 피드백 메시지 나 설명을받지 못한다.

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)을 사용하고 있습니다.

답변

0
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); 
    } 
}