private void OnLoginComplete(LoginResult result)
        {
            if (result.LoginState == LoginState.Success)
            {
                _user.SocialId    = result.UserId;
                _user.Name        = (result.FirstName + " " + result.LastName).Trim();
                _user.Email       = result.Email;
                _user.Picture     = result.ImageUrl;
                _user.IsLoggedIn  = true;
                _user.IsOnline    = true;
                _user.Token       = result.Token;
                _user.LoginSource = result.LoginSource;

                DependencyService.Get <IPreLoadLoginHandler>().UpdateLoginInformation(_user);
                using (var client = new WebApiClient())
                {
                    var response = client.AddUser(_user);
                }

                var mainPage = new MainPage(_user);
                Application.Current.MainPage = mainPage;
            }
            else
            {
                CurrentPage.DisplayAlert("Alert", "Failed to authorize", "OK");
            }
        }