Code example for FacebookError

Methods: getMessage

0
        	Toast.makeText(FacebookLogin.this, "Logged In Facebook", Toast.LENGTH_SHORT).show();
            goToHotelSearchActivity(); 
        } 
 
        public void onFacebookError(FacebookError error) {
           	Toast.makeText(FacebookLogin.this, error.getMessage(), Toast.LENGTH_SHORT).show();
        } 
         
        public void onError(DialogError error) {
        	Toast.makeText(FacebookLogin.this, error.getMessage(), Toast.LENGTH_SHORT).show();
        } 
 
        public void onCancel() { 
        	Toast.makeText(FacebookLogin.this, "Action Cancelled", Toast.LENGTH_SHORT).show();
        } 
    } 
 
}