private void OnLoginFailed() { InvokeOnMainThread(() => { if (FacebookCoreKit.AccessToken.CurrentAccessToken != null) { FacebookLoginKit.LoginManager fbLoginManager = new FacebookLoginKit.LoginManager(); fbLoginManager.LogOut(); } UIAlertView error = new UIAlertView("Error", "An error occured during login", null, "Ok", null); error.Show(); ViewHelpers.RemoveLoadingOverlay(View); }); }