Saturday, 7 September 2013

Facebook oAuth user details with MVC 4

Facebook oAuth user details with MVC 4

I am using the OAuthWebSecurity with MVC to allow users of my website to
login using Facebook's oAuth. Everything works fine, and I have a test
user authenticating fine.
My question is based on the details Facebook can provide. I am currently
returning the user details using the following...
AuthenticationResult result = OAuthWebSecurity.VerifyAuthentication();
This will give the follwing details:
UserName (email)
ProviderUserId
I also get a ExternalData object which has:
UserName
Name
Gender
Do you know if it's possible to get further data, maybe DoB, photo etc?

No comments:

Post a Comment