FacebookAppBuilderExtensions Class

Extension methods to add Facebook authentication capabilities to an HTTP application pipeline.

Namespace
Microsoft.AspNetCore.Builder
Assemblies
  • Microsoft.AspNetCore.Authentication.Facebook

Syntax

public class FacebookAppBuilderExtensions
class Microsoft.AspNetCore.Builder.FacebookAppBuilderExtensions

Methods

UseFacebookAuthentication(Microsoft.AspNetCore.Builder.IApplicationBuilder)

Adds the Microsoft.AspNetCore.Authentication.Facebook.FacebookMiddleware middleware to the specified Microsoft.AspNetCore.Builder.IApplicationBuilder, which enables Facebook authentication capabilities.

Arguments:app (Microsoft.AspNetCore.Builder.IApplicationBuilder) – The Microsoft.AspNetCore.Builder.IApplicationBuilder to add the middleware to.
Return type:Microsoft.AspNetCore.Builder.IApplicationBuilder
Returns:A reference to this instance after the operation has completed.
public static IApplicationBuilder UseFacebookAuthentication(this IApplicationBuilder app)
UseFacebookAuthentication(Microsoft.AspNetCore.Builder.IApplicationBuilder, Microsoft.AspNetCore.Builder.FacebookOptions)

Adds the Microsoft.AspNetCore.Authentication.Facebook.FacebookMiddleware middleware to the specified Microsoft.AspNetCore.Builder.IApplicationBuilder, which enables Facebook authentication capabilities.

Arguments:
Return type:

Microsoft.AspNetCore.Builder.IApplicationBuilder

Returns:

A reference to this instance after the operation has completed.

public static IApplicationBuilder UseFacebookAuthentication(this IApplicationBuilder app, FacebookOptions options)