ASP.NET MVC 5.1 C# OWIN facebook authentication or login ask for birthday, likes, public profile, phone number
I have seen many posts for facebook authentication , either those are old or not working correctly as it should be. However finally I have made something in my project that works but not fully. Here is code where I ask for var facebookAuthenticationOptions = new FacebookAuthenticationOptions() { AppId = "...ID", AppSecret = "...AppSecret", AuthenticationType = "Facebook", SignInAsAuthenticationType = "ExternalCookie", //Provider = new FacebookAuthenticationProvider //{ // OnAuthenticated = async ctx => // { // if (ctx.User["birthday"] != null) // { // ctx.Identity.AddClaim(new Claim(ClaimTypes