Beispiel #1
0
        partial void ActionFBLogin(UIButton sender)
        {
            var FBLoginManager = new Facebook.LoginKit.LoginManager();

            FBLoginManager.LogOut();
            FBLoginManager.LogInWithReadPermissions(Constants.FB_PERMISSIONS, this, HandleLoginManagerRequestTokenHandler);
        }
        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);
            });
        }
Beispiel #3
0
        public static void  Logout()
        {
            var manager = new fb.LoginKit.LoginManager();

            manager.LogOut();
        }