Question

I am developing a little mobile project using facebook-actionscript-api.

Things are working fine I am basically using pieces of code from example files. But i'm not receiving feedback messages or description from the fail Object passed to the callback function.

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 ''
    }
}

How can I debug errors? Is there a bug here? I'm using the latest version (1.8.1).

No correct solution

OTHER TIPS

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); 
    }
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top