Friday 3 January 2014

Using OAuth Providers with MVC 4 to Get Extra Data like Email Gender Bithdate


I follow step by step this  article
http://www.asp.net/mvc/tutorials/security/using-oauth-providers-with-mvc

but unfortunately i was not able to get Facebook email  , birthday and gender.

after heavy search i found out you can solve this  problem by adjusting Facebook App
permission that user will be asked for by default.

okay i will tell you how.

by default when you create an App on Facebook they will not return email and gender they just will return
 basic info (name , link ...)


if you want get  extra data like gender and birthdate you have to change the permission for the application



     after i have changed permissions in Facebook  i got the data i want from Facebook