Microsoft.AspNetCore.Authentication.Facebook 10.0.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.AspNetCore.Authentication.Facebook --version 10.0.0
                    
NuGet\Install-Package Microsoft.AspNetCore.Authentication.Facebook -Version 10.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.AspNetCore.Authentication.Facebook" Version="10.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.AspNetCore.Authentication.Facebook" Version="10.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.AspNetCore.Authentication.Facebook" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.AspNetCore.Authentication.Facebook --version 10.0.0
                    
#r "nuget: Microsoft.AspNetCore.Authentication.Facebook, 10.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.AspNetCore.Authentication.Facebook@10.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.AspNetCore.Authentication.Facebook&version=10.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.Authentication.Facebook&version=10.0.0
                    
Install as a Cake Tool

About

Microsoft.AspNetCore.Authentication.Facebook provides ASP.NET Core middleware that enables an application to support Facebook's OAuth 2.0 authentication workflow.

How to Use

To use Microsoft.AspNetCore.Authentication.Facebook, follow these steps:

Installation

dotnet add package Microsoft.AspNetCore.Authentication.Facebook

Configuration

  1. Refer to the guide in the official documentation here to create the app in Facebook.
  2. Follow the steps in the official documentation here to store the Facebook app ID and secret.
  3. Configure the middleware your ASP.NET Core app's Program.cs:
var builder = WebApplication.CreateBuilder(args);

builder.Services.AddAuthentication()
    .AddFacebook(options =>
    {
        options.AppId = Configuration["Authentication:Facebook:AppId"];
        options.AppSecret = Configuration["Authentication:Facebook:AppSecret"];
    });

Main Types

The main types provided by this package are:

  • FacebookOptions: Represents the options for configuring Facebook authentication
  • FacebookHandler: The authentication handler responsible for processing Facebook authentication requests and generating the appropriate authentication ticket

Additional Documentation

For additional documentation and examples, refer to the official documentation on Facebook login setup in ASP.NET Core.

Feedback & Contributing

Microsoft.AspNetCore.Authentication.Facebook is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (90)

Showing the top 5 NuGet packages that depend on Microsoft.AspNetCore.Authentication.Facebook:

Package Downloads
Microsoft.AspNetCore.App

Provides a default set of APIs for building an ASP.NET Core application. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.

Microsoft.AspNetCore.All

Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.

Abp.AspNetZeroCore.Web

Package Description

NanoCore

The project is inspired by years of tedious repetitions, continuously re-writing similar code-snippets and libraries, to handle common functionality, not related to the business domain, such as logging, data persistence, message queuing, documentation, validation and similar.

FenixAlliance.ACL.Dependencies

Application Component for the Alliance Business Suite.

GitHub repositories (36)

Showing the top 20 popular GitHub repositories that depend on Microsoft.AspNetCore.Authentication.Facebook:

Repository Stars
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
nopSolutions/nopCommerce
ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
OrchardCMS/OrchardCore
Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
EduardoPires/EquinoxProject
Web Application ASP.NET 9 using Clean Architecture, DDD, CQRS, Event Sourcing and a lot of good practices
simplcommerce/SimplCommerce
A simple, cross platform, modulith ecommerce system built on .NET
phongnguyend/Practical.CleanArchitecture
Full-stack .Net 10 Clean Architecture (Microservices, Modular Monolith, Monolith), Blazor, Angular 21, React 19, Vue 3.5, BFF with YARP, NextJs 16, Domain-Driven Design, CQRS, SOLID, Asp.Net Core Identity Custom Storage, OpenID Connect, EF Core, OpenTelemetry, SignalR, Background Services, Health Checks, Rate Limiting, Clouds (Azure, AWS, GCP), ...
aspnet/Identity
[Archived] ASP.NET Core Identity is the membership system for building ASP.NET Core web applications, including membership, login, and user data. Project moved to https://github.com/aspnet/AspNetCore
enkodellc/blazorboilerplate
Blazor Boilerplate / Starter Template with MudBlazor
grandnode/grandnode
Open source, headless, multi-tenant eCommerce platform built with .NET Core, MongoDB, AWS DocumentDB, Azure CosmosDB, Vue.js.
ivaylokenov/MyTested.AspNetCore.Mvc
Fluent testing library for ASP.NET Core MVC.
fullstackproltd/AspNetCoreSpa
Asp.Net 7.0 & Angular 15 SPA Fullstack application with plenty of examples. Live demo:
xamarin/Essentials
Xamarin.Essentials is no longer supported. Migrate your apps to .NET MAUI, which includes Maui.Essentials.
smartstore/Smartstore
A modular, scalable and ultra-fast open-source all-in-one eCommerce platform built on ASP.NET Core 7
cloudscribe/cloudscribe
ASP.NET Core multi-tenant web application foundation with management for sites, users, roles, claims and more
bitfoundation/bitplatform
Build all of your apps using what you already know and love ❤️
grandnode/grandnode2
E-commerce platform built with ASP.NET Core using MongoDB for NoSQL storage
neozhu/CleanArchitectureWithBlazorServer
This repository is designed to create an enterprise Blazor Server application that follows the principles of Clean Architecture and implements Blazor Clean Architecture best practices for scalability, maintainability, and testability.
mixcore/mix.core
🚀 A future-proof enterprise web CMS supporting both headless and decoupled approaches. Build any type of app with customizable APIs on ASP.NET Core/.NET Core. Completely open-source and designed for flexibility.
simpleidserver/SimpleIdServer
OpenID, OAuth 2.0, SCIM2.0, UMA2.0, FAPI, CIBA & OPENBANKING Framework for ASP.NET Core
Aguafrommars/TheIdServer
OpenID/Connect, OAuth2, WS-Federation and SAML 2.0 server based on Duende IdentityServer and ITFoxtec Identity SAML 2.0 with its admin UI
Version Downloads Last Updated
10.0.2 11,177 1/13/2026
10.0.1 65,055 12/9/2025
10.0.0 143,751 11/11/2025
10.0.0-rc.2.25502.107 811 10/14/2025
10.0.0-rc.1.25451.107 695 9/9/2025
10.0.0-preview.7.25380.108 343 8/12/2025
10.0.0-preview.6.25358.103 268 7/15/2025
10.0.0-preview.5.25277.114 282 6/6/2025
10.0.0-preview.4.25258.110 406 5/12/2025
10.0.0-preview.3.25172.1 329 4/10/2025
10.0.0-preview.2.25164.1 82,472 3/18/2025
10.0.0-preview.1.25120.3 136,085 2/25/2025
9.0.12 1,269 1/13/2026
9.0.11 106,368 11/11/2025
9.0.10 148,204 10/14/2025
9.0.9 181,975 9/9/2025
9.0.8 195,903 8/5/2025
9.0.7 166,064 7/8/2025
9.0.6 177,423 6/10/2025
9.0.5 171,651 5/13/2025
9.0.4 201,245 4/8/2025
9.0.3 200,754 3/11/2025
9.0.2 177,745 2/11/2025
9.0.1 282,218 1/14/2025
9.0.0 304,116 11/12/2024
9.0.0-rc.2.24474.3 3,387 10/8/2024
9.0.0-rc.1.24452.1 3,387 9/10/2024
9.0.0-preview.7.24406.2 3,706 8/13/2024
9.0.0-preview.6.24328.4 102,321 7/9/2024
9.0.0-preview.5.24306.11 421 6/11/2024
9.0.0-preview.4.24267.6 405 5/21/2024
9.0.0-preview.3.24172.13 981 4/11/2024
9.0.0-preview.2.24128.4 643 3/12/2024
9.0.0-preview.1.24081.5 1,863 2/13/2024
8.0.23 1,218 1/13/2026
8.0.22 94,790 11/11/2025
8.0.21 120,241 10/14/2025
8.0.20 144,557 9/9/2025
8.0.19 151,885 8/4/2025
8.0.18 160,101 7/8/2025
8.0.17 144,404 6/10/2025
8.0.16 150,785 5/13/2025
8.0.15 214,747 4/8/2025
8.0.14 186,619 3/11/2025
8.0.13 153,423 2/11/2025
8.0.12 169,106 1/14/2025
8.0.11 297,732 11/12/2024
8.0.10 283,265 10/8/2024
8.0.8 343,315 8/13/2024
8.0.7 252,142 7/9/2024
8.0.6 243,654 5/28/2024
8.0.5 181,728 5/14/2024
8.0.4 294,703 4/9/2024
8.0.3 212,408 3/12/2024
8.0.2 214,052 2/13/2024
8.0.1 252,856 1/9/2024
8.0.0 642,417 11/14/2023
8.0.0-rc.2.23480.2 6,380 10/10/2023
8.0.0-rc.1.23421.29 1,236 9/12/2023
8.0.0-preview.7.23375.9 1,129 8/8/2023
8.0.0-preview.6.23329.11 902 7/11/2023
8.0.0-preview.5.23302.2 1,044 6/13/2023
8.0.0-preview.4.23260.4 263,524 5/16/2023
8.0.0-preview.3.23177.8 1,895 4/11/2023
8.0.0-preview.2.23153.2 91,853 3/14/2023
8.0.0-preview.1.23112.2 783 2/21/2023
7.0.20 176,379 5/28/2024
7.0.19 137,666 5/14/2024
7.0.18 137,138 4/9/2024
7.0.17 142,035 3/12/2024
7.0.16 139,416 2/13/2024
7.0.15 144,423 1/9/2024
7.0.14 154,655 11/14/2023
7.0.13 215,570 10/24/2023
7.0.12 173,956 10/10/2023
7.0.11 176,861 9/12/2023
7.0.10 230,263 8/8/2023
7.0.9 203,068 7/11/2023
7.0.8 174,788 6/22/2023
7.0.7 157,940 6/13/2023
7.0.5 333,963 4/11/2023
7.0.4 203,531 3/14/2023
7.0.3 201,930 2/14/2023
7.0.2 220,471 1/10/2023
7.0.1 245,077 12/13/2022
7.0.0 230,627 11/7/2022
7.0.0-rc.2.22476.2 1,392 10/11/2022
7.0.0-rc.1.22427.2 66,898 9/14/2022
7.0.0-preview.7.22376.6 980 8/9/2022
7.0.0-preview.6.22330.3 692 7/12/2022
7.0.0-preview.5.22303.8 1,001 6/14/2022
7.0.0-preview.4.22251.1 1,004 5/10/2022
7.0.0-preview.3.22178.4 863 4/13/2022
7.0.0-preview.2.22153.2 640 3/14/2022
7.0.0-preview.1.22109.13 656 2/17/2022
6.0.36 159,288 11/12/2024
6.0.35 173,145 10/8/2024
6.0.33 140,645 8/13/2024
6.0.32 140,863 7/9/2024
6.0.31 143,867 5/28/2024
6.0.30 137,557 5/14/2024
6.0.29 140,683 4/9/2024
6.0.28 150,504 3/12/2024
6.0.27 148,219 2/13/2024
6.0.26 152,620 1/9/2024
6.0.25 211,535 11/14/2023
6.0.24 152,560 10/24/2023
6.0.23 146,314 10/10/2023
6.0.22 157,268 9/12/2023
6.0.21 193,091 8/8/2023
6.0.20 153,802 7/11/2023
6.0.19 148,854 6/22/2023
6.0.18 142,546 6/13/2023
6.0.16 235,312 4/11/2023
6.0.15 178,543 3/14/2023
6.0.14 178,098 2/14/2023
6.0.13 193,508 1/10/2023
6.0.12 193,596 12/13/2022
6.0.11 221,610 11/7/2022
6.0.10 349,367 10/11/2022
6.0.9 225,650 9/13/2022
6.0.8 310,170 8/9/2022
6.0.7 372,800 7/12/2022
6.0.6 275,781 6/14/2022
6.0.5 1,258,446 5/10/2022
6.0.4 314,221 4/11/2022
6.0.3 254,110 3/8/2022
6.0.2 243,330 2/8/2022
6.0.1 990,605 12/14/2021
6.0.0 564,138 11/8/2021
6.0.0-rc.2.21480.10 2,843 10/12/2021
6.0.0-rc.1.21452.15 9,510 9/14/2021
6.0.0-preview.7.21378.6 1,709 8/10/2021
6.0.0-preview.6.21355.2 1,038 7/14/2021
6.0.0-preview.5.21301.17 1,019 6/15/2021
6.0.0-preview.4.21253.5 932 5/24/2021
6.0.0-preview.3.21201.13 844 4/8/2021
6.0.0-preview.2.21154.6 889 3/11/2021 6.0.0-preview.2.21154.6 is deprecated because it is no longer maintained.
6.0.0-preview.1.21103.6 2,025 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.17 170,903 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 147,871 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 146,912 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 149,127 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 179,151 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 164,949 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 219,691 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 222,940 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 205,925 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 251,726 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 268,100 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 205,054 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 249,351 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 237,456 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 365,741 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 189,750 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 229,644 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 552,165 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.17 1,897 10/13/2020 5.0.0-rc.2.20475.17 is deprecated because it is no longer maintained.
5.0.0-rc.1.20451.17 2,954 9/14/2020 5.0.0-rc.1.20451.17 is deprecated because it is no longer maintained.
5.0.0-preview.8.20414.8 1,042 8/25/2020 5.0.0-preview.8.20414.8 is deprecated because it is no longer maintained.
5.0.0-preview.7.20365.19 1,367 7/21/2020 5.0.0-preview.7.20365.19 is deprecated because it is no longer maintained.
5.0.0-preview.6.20312.15 1,941 6/25/2020 5.0.0-preview.6.20312.15 is deprecated because it is no longer maintained.
5.0.0-preview.5.20279.2 901 6/10/2020 5.0.0-preview.5.20279.2 is deprecated because it is no longer maintained.
5.0.0-preview.4.20257.10 1,047 5/18/2020 5.0.0-preview.4.20257.10 is deprecated because it is no longer maintained.
5.0.0-preview.3.20215.14 980 4/23/2020 5.0.0-preview.3.20215.14 is deprecated because it is no longer maintained.
5.0.0-preview.2.20167.3 1,007 4/2/2020 5.0.0-preview.2.20167.3 is deprecated because it is no longer maintained.
5.0.0-preview.1.20124.5 997 3/16/2020 5.0.0-preview.1.20124.5 is deprecated because it is no longer maintained.
3.1.32 161,684 12/13/2022
3.1.31 140,146 11/8/2022
3.1.30 145,830 10/11/2022
3.1.29 138,611 9/13/2022
3.1.28 150,390 8/9/2022
3.1.27 141,603 7/12/2022
3.1.26 145,471 6/14/2022
3.1.25 147,153 5/10/2022
3.1.24 139,254 4/11/2022
3.1.23 148,284 3/8/2022
3.1.22 173,362 12/14/2021
3.1.21 157,423 11/7/2021
3.1.20 155,851 10/11/2021
3.1.19 154,203 9/14/2021
3.1.18 213,002 8/10/2021
3.1.17 178,894 7/13/2021
3.1.16 168,569 6/8/2021
3.1.15 153,955 5/11/2021
3.1.14 172,294 4/6/2021
3.1.13 213,457 3/9/2021
3.1.12 181,180 2/9/2021
3.1.11 269,570 1/12/2021
3.1.10 366,218 11/9/2020
3.1.9 330,122 10/13/2020
3.1.8 321,200 9/8/2020
3.1.7 210,616 8/11/2020
3.1.6 240,786 7/14/2020
3.1.5 392,539 6/9/2020
3.1.4 389,485 5/12/2020
3.1.3 365,269 3/24/2020
3.1.2 346,543 2/18/2020
3.1.1 273,352 1/14/2020
3.1.0 286,992 12/3/2019
3.1.0-preview3.19555.2 1,016 11/13/2019 3.1.0-preview3.19555.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19528.8 942 11/1/2019 3.1.0-preview2.19528.8 is deprecated because it is no longer maintained.
3.1.0-preview1.19508.20 1,104 10/15/2019 3.1.0-preview1.19508.20 is deprecated because it is no longer maintained.
3.0.3 147,004 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 154,041 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.0 889,974 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19457.4 2,569 9/16/2019 3.0.0-rc1.19457.4 is deprecated because it is no longer maintained.
3.0.0-preview9.19424.4 1,811 9/4/2019 3.0.0-preview9.19424.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.7 2,188 8/13/2019 3.0.0-preview8.19405.7 is deprecated because it is no longer maintained.
3.0.0-preview7.19365.7 2,766 7/23/2019 3.0.0-preview7.19365.7 is deprecated because it is no longer maintained.
3.0.0-preview6.19307.2 2,145 6/12/2019 3.0.0-preview6.19307.2 is deprecated because it is no longer maintained.
3.0.0-preview5-19227-01 2,894 5/6/2019 3.0.0-preview5-19227-01 is deprecated because it is no longer maintained.
3.0.0-preview4-19216-03 2,320 4/18/2019 3.0.0-preview4-19216-03 is deprecated because it is no longer maintained.
3.0.0-preview3-19153-02 2,456 3/6/2019 3.0.0-preview3-19153-02 is deprecated because it is no longer maintained.
3.0.0-preview-19075-0444 2,915 1/29/2019 3.0.0-preview-19075-0444 is deprecated because it is no longer maintained.
3.0.0-preview-18579-0056 2,635 12/3/2018 3.0.0-preview-18579-0056 is deprecated because it is no longer maintained.
2.3.9 150 1/7/2026
2.3.8 145 1/6/2026
2.3.0 136,244 1/14/2025
2.2.0 14,660,598 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 64,279 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 6,831 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.
2.2.0-preview1-35029 4,225 8/22/2018 2.2.0-preview1-35029 is deprecated because it is no longer maintained.
2.1.2 13,879,919 8/21/2018
2.1.1 12,558,178 6/18/2018
2.1.0 3,741,364 5/29/2018
2.1.0-rc1-final 20,350 5/6/2018 2.1.0-rc1-final is deprecated because it is no longer maintained.
2.1.0-preview2-final 20,975 4/10/2018 2.1.0-preview2-final is deprecated because it is no longer maintained.
2.1.0-preview1-final 28,686 2/26/2018 2.1.0-preview1-final is deprecated because it is no longer maintained.
2.0.4 4,037,999 5/7/2018 2.0.4 is deprecated because it is no longer maintained.
2.0.3 3,922,610 3/13/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.1 5,588,274 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 6,715,720 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 57,943 6/27/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 23,350 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.3 147,140 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 223,122 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 237,208 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 245,348 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 4,782 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.5 140,579 11/14/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 139,216 9/20/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 141,358 5/9/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 149,330 3/6/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 142,501 12/12/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 286,474 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 6,542 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.