打电话UseFacebookAuthentication之后UseIdentity,但之前UseMvc;
UseFacebookAuthentication
UseIdentity
UseMvc
app.UseIdentity(); app.UseFacebookAuthentication(options => { options.AppId = "removed"; options.AppSecret = "removed"; }); app.UseMvcWithDefaultRoute();