Hi,
Facebook docs give this javascript code as shown below for oAuth login re-request
FB.login(
function(response)
{
console.log(response);
}, { scope: 'email', auth_type: 'rerequest' }
);
Is it possible to implement above functionality in my Startup.cs file of asp.net core project, instead?
app.UseFacebookAuthentication(new FacebookOptions
{ AppId = "***", AppSecret = "***", Events = new OAuthEvents { OnRemoteFailure = context => { context.HandleResponse();
context.Response.Redirect("/Account/Login");
return Task.FromResult(0);
}
}
});
Thanks
Subscribe to our weekly Newsletter & Keep getting latest article/questions in your inbox weekly