I want to be able to login with Facebook and then retrieve the user ID
and email
.
I am using AuthenticationManager.GetExternalLoginInfoAsync();
to get the user login information, but it only returns the username.
Before Owin
I had DotNetOpenAuth.AspNet.AuthenticationResult
and it had a Dictionary with extra information, so I could grab for example
result.ExtraData.TryGetValue("name", out aux);
Now with Owin
I don't know how to grab this information. How can I get the user email from Facebook, for example?