ASP.NET Core middleware that enables an application to support Facebook's OAuth 2.0 authentication workflow. This package was built from the source code at https://github.com/dotnet/dotnet/tree/87bc0b04e21d786669142109a5128c95618b75ed
$ dotnet add package Microsoft.AspNetCore.Authentication.FacebookMicrosoft.AspNetCore.Authentication.Facebook provides ASP.NET Core middleware that enables an application to support Facebook's OAuth 2.0 authentication workflow.
To use Microsoft.AspNetCore.Authentication.Facebook, follow these steps:
dotnet add package Microsoft.AspNetCore.Authentication.Facebook
Program.cs:var builder = WebApplication.CreateBuilder(args);
builder.Services.AddAuthentication()
.AddFacebook(options =>
{
options.AppId = Configuration["Authentication:Facebook:AppId"];
options.AppSecret = Configuration["Authentication:Facebook:AppSecret"];
});
The main types provided by this package are:
FacebookOptions: Represents the options for configuring Facebook authenticationFacebookHandler: The authentication handler responsible for processing Facebook authentication requests and generating the appropriate authentication ticketFor additional documentation and examples, refer to the official documentation on Facebook login setup in ASP.NET Core.
Microsoft.AspNetCore.Authentication.Facebook is released as open-source under the MIT license. Bug reports and contributions are welcome at .