I am trying to get the username and email address of a user from facebook. I read a lot of information on this topic, and this is my last code that works for some reason only on my facebook app admin account:
public partial class Startup { public void ConfigureAuth(IAppBuilder app) { var FacebookOptions = new FacebookAuthenticationOptions() { AppId = "My App Id", AppSecret = "My App Secret", SignInAsAuthenticationType = DefaultAuthenticationTypes.ExternalCookie, BackchannelHttpHandler = new FacebookBackChannelHandler(), UserInformationEndpoint = "https://graph.facebook.com/v2.7/me?fields=id,name,email" }; } } public class FacebookBackChannelHandler : HttpClientHandler { protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) { if (!request.RequestUri.AbsolutePath.Contains("/oauth")) { request.RequestUri = new Uri(request.RequestUri.AbsoluteUri.Replace("?access_token", "&access_token")); } return await base.SendAsync(request, cancellationToken); } } public class AccountController : Controller { public async Task<ActionResult> ExternalLoginCallback(string returnUrl) { var loginInfo = await AuthenticationManager.GetExternalLoginInfoAsync(); } }
On every additional account I get loginInfo.Email is null .
At developers.facebook.com I have:

When someone clicks "Sign in to Facebook", he receives this message:

If I click "Browse the information you provide", I get:

What am I missing? Why is this not working?
source share