Take the 2-minute tour ×

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?

share|improve this question
Have you read the docs and all? You can fetch n number of things- each associated with a permission. Start here: developers.facebook.com –  Sahil Mittal Sep 8 '13 at 5:11
The documentation specifies how to get the additional data? Where in the document will I find this? –  christiandev Sep 8 '13 at 18:04
I'm not sure, but you can start from here: facebooksdk.net/docs/phone/tutorial –  Sahil Mittal Sep 8 '13 at 18:09
This is the reason I've posted the question, if it can't be achieved, I don't want to read all the documentation to find it can't be achieved. –  christiandev Sep 8 '13 at 19:02
Well, these are the basic things; you'll find them at the start of the documentation. Good luck! :) –  Sahil Mittal Sep 8 '13 at 19:03

1 Answer 1

up vote 1 down vote accepted

Pardon me for not framing me the full answer. I am just supplying a link. Please check


Everything is explained here.

For setting permission you can go through this documentation https://developers.facebook.com/docs/facebook-login/permissions/

if you were to request a user's email address, but never asked them for the 'email' permission, you would receive an OAuth error as show below.

try {
var client = new FacebookClient("my_access_token");
dynamic result = client.Get("me/email");
var email = (string)result.email;


catch (FacebookOAuthException) {
    // The access token expired or the user 
    // has not granted your app 'email' permission.
    // Handle this by redirecting the user to the
    // Facebook authenticate and ask for email permission.
share|improve this answer

Your Answer


