*/
protected Object parseCallResult( InputStream data, IFacebookMethod method ) throws FacebookException, IOException {
log.debug( "Facebook response: " + rawResponse );
Object res = getResponsePOJO();
if ( res instanceof FacebookApiException ) {
FacebookApiException error = (FacebookApiException) res;
int errorCode = error.getErrorCode();
String message = error.getErrorMsg();
throw new FacebookException( errorCode, message );
}
return res;
}