Beispiel #1
0
        private async Task RegisterWithFacebook()
        {
            try
            {
                var result = await _externalService.RegisterWithFacebook();

                var userProfileNavigation = new UserProfileNavigation(result.UserId, result.AccessToken);
                await HostScreen.Router.Navigate.Execute(new RegisterUserProfileViewModel(userProfileNavigation, _hostScreen));
            }
            catch (Exception ex)
            {
                _logger.Error(nameof(RegisterWithFacebook), ex);
                await _dialogService.PresentAlertAsync("Tittel", "Body");
            }
        }