Jaa


FacebookAdapter Constructors

Definition

Overloads

FacebookAdapter(FacebookClientWrapper, FacebookAdapterOptions, ILogger)

Initializes a new instance of the FacebookAdapter class using an existing Facebook client.

FacebookAdapter(IConfiguration, FacebookAdapterOptions, ILogger)

Initializes a new instance of the FacebookAdapter class using configuration settings.

FacebookAdapter(FacebookClientWrapper, FacebookAdapterOptions, ILogger)

Initializes a new instance of the FacebookAdapter class using an existing Facebook client.

public FacebookAdapter (Microsoft.Bot.Builder.Adapters.Facebook.FacebookClientWrapper facebookClient, Microsoft.Bot.Builder.Adapters.Facebook.FacebookAdapterOptions options, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Builder.Adapters.Facebook.FacebookAdapter : Microsoft.Bot.Builder.Adapters.Facebook.FacebookClientWrapper * Microsoft.Bot.Builder.Adapters.Facebook.FacebookAdapterOptions * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.Adapters.Facebook.FacebookAdapter
Public Sub New (facebookClient As FacebookClientWrapper, options As FacebookAdapterOptions, Optional logger As ILogger = Nothing)

Parameters

facebookClient
FacebookClientWrapper

Client used to interact with the Facebook API.

options
FacebookAdapterOptions

Options for the Facebook Adapter.

logger
ILogger

The logger this adapter should use.

Exceptions

options is null.

Applies to

FacebookAdapter(IConfiguration, FacebookAdapterOptions, ILogger)

Initializes a new instance of the FacebookAdapter class using configuration settings.

public FacebookAdapter (Microsoft.Extensions.Configuration.IConfiguration configuration, Microsoft.Bot.Builder.Adapters.Facebook.FacebookAdapterOptions options = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Builder.Adapters.Facebook.FacebookAdapter : Microsoft.Extensions.Configuration.IConfiguration * Microsoft.Bot.Builder.Adapters.Facebook.FacebookAdapterOptions * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.Adapters.Facebook.FacebookAdapter
Public Sub New (configuration As IConfiguration, Optional options As FacebookAdapterOptions = Nothing, Optional logger As ILogger = Nothing)

Parameters

configuration
IConfiguration

An IConfiguration instance.

logger
ILogger

The logger this adapter should use.

Remarks

The adapter uses these configuration keys: - `VerifyToken`, the token to respond to the initial verification request. - `AppSecret`, the secret used to validate incoming webhooks. - `AccessToken`, an access token for the bot.

Applies to