I use the RC1 kernel for ASP.NET (and I can’t upgrade to the non-RC2 nightly collections because of the lack of VS support in RC2).
I'm trying to get additional fields from Facebook ( first_name, last_name, emailand significant_other).
I used the code suggested by Github :
app.UseFacebookAuthentication(options =>
{
options.AppId = Configuration["Authentication:Facebook:AppId"];
options.AppSecret = Configuration["Authentication:Facebook:AppSecret"];
options.Scope.Add("email");
options.Scope.Add("user_relationships");
options.BackchannelHttpHandler = new HttpClientHandler();
options.UserInformationEndpoint =
"https://graph.facebook.com/v2.5/me?fields=id,email,first_name,last_name,significant_other";
This solution really returns the emailuser, but with errors first_name, last_nameand significant_other(and any other field that I tried, except for the name, identifier and email).
, FB? Facebook, ASP.NET Core ( , RC1).
, .