public async Task <bool> LoginAsync() { bool r = false; r = Settings.IsLoggedIn; if (!Settings.IsLoggedIn) { r = await _IAzureService.LoginAsync(); } if (!r) { return(false); } Newtonsoft.Json.Linq.JToken j = await _IAzureService.GetInfoProvider("/.auth/me"); Settings.TokenAuthFacebook = j[0].Value <string>("access_token"); UserFacebookAuthentication us = await _IFacebookService.GetPublicPerfilAsync(Settings.TokenAuthFacebook); User.Email = us.Email; User.UrlPicture = us.UrlPicture; User.UID = us.UID; User.FirstName = us.FirstName; User.LastName = us.LastName; return(true); }