Ejemplo n.º 1
0
        public override void ViewWillAppear(bool animated)
        {
            base.ViewWillAppear(animated);
            if (accountKit == null)
            {
                accountKit = new AccountKit(ResponseType.AccessToken);
            }

            RequestAccountHandler handler = AccountHandlerDelegate;

            accountKit.RequestAccount(handler);
        }
Ejemplo n.º 2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Perform any additional setup after loading the view, typically from a nib.
            if (accountKit == null)
            {
                accountKit = new AccountKit(ResponseType.AccessToken); //Or use Code
            }

            pendingLoginViewController = accountKit.GetViewControllerForLoginResume();
            fbtcs = new TaskCompletionSource <string>();
        }
 public void GetCurrentAccount()
 {
     AccountKit.GetCurrentAccount(this);
 }
 public void Logout()
 {
     AccountKit.LogOut();
 }