Code example for FacebookError

Methods: getLocalizedMessagegetMessage

0
                    Toast.LENGTH_SHORT).show();
        } 
 
        @Override 
        public void onFacebookError(FacebookError error) {
            SessionEvents.onLoginError(error.getMessage());
            Toast.makeText(sActivity, error.getLocalizedMessage(),
                    Toast.LENGTH_SHORT).show();
        } 
 
        @Override 
        public void onError(DialogError error) {
            SessionEvents.onLoginError(error.getMessage());
            Toast.makeText(sActivity, error.getLocalizedMessage(),
                    Toast.LENGTH_SHORT).show();
        } 
 
        @Override 
        public void onCancel() { 
            SessionEvents.onLoginError("Action Canceled");