แชร์ผ่าน


FacebookAdapter Class

Definition

Caution

The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.

BotAdapter to allow for handling Facebook App payloads and responses via the Facebook API.

[System.Obsolete("The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.")]
public class FacebookAdapter : Microsoft.Bot.Builder.BotAdapter, Microsoft.Bot.Builder.Integration.AspNet.Core.IBotFrameworkHttpAdapter
[<System.Obsolete("The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.")>]
type FacebookAdapter = class
    inherit BotAdapter
    interface IBotFrameworkHttpAdapter
Public Class FacebookAdapter
Inherits BotAdapter
Implements IBotFrameworkHttpAdapter
Inheritance
FacebookAdapter
Attributes
Implements

Constructors

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.

Fields

BotIdentityKey

The string value for the bot identity key.

(Inherited from BotAdapter)
InvokeResponseKey

The key value for any InvokeResponseActivity that would be on the TurnState.

(Inherited from BotAdapter)
OAuthScopeKey

The string value for the OAuth scope key.

(Inherited from BotAdapter)

Properties

MiddlewareSet

Gets the collection of middleware in the adapter's pipeline.

(Inherited from BotAdapter)
OnTurnError

Gets or sets an error handler that can catch exceptions in the middleware or application.

(Inherited from BotAdapter)

Methods

ContinueConversationAsync(ClaimsIdentity, Activity, BotCallbackHandler, CancellationToken)

Sends a proactive message to a conversation.

(Inherited from BotAdapter)
ContinueConversationAsync(ClaimsIdentity, Activity, String, BotCallbackHandler, CancellationToken)

Sends a proactive message to a conversation.

(Inherited from BotAdapter)
ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)

Sends a proactive message from the bot to a conversation.

ContinueConversationAsync(ClaimsIdentity, ConversationReference, String, BotCallbackHandler, CancellationToken)

Sends a proactive message to a conversation.

(Inherited from BotAdapter)
ContinueConversationAsync(ConversationReference, BotCallbackHandler, CancellationToken)

Sends a proactive message to a conversation using a conversation reference.

ContinueConversationAsync(String, Activity, BotCallbackHandler, CancellationToken)

Sends a proactive message to a conversation.

(Inherited from BotAdapter)
ContinueConversationAsync(String, ConversationReference, BotCallbackHandler, CancellationToken)

Sends a proactive message to a conversation.

(Inherited from BotAdapter)
CreateConversationAsync(String, String, String, String, ConversationParameters, BotCallbackHandler, CancellationToken)

Creates a conversation on the specified channel.

(Inherited from BotAdapter)
CreateFacebookMessageFromActivity(Activity)

Factory method to create the FacebookMessage instance of the Activity to be sent to Facebook.

DeleteActivityAsync(ITurnContext, ConversationReference, CancellationToken)

Throws a NotImplementedException exception in all cases.

ProcessActivityAsync(ClaimsIdentity, Activity, BotCallbackHandler, CancellationToken)

Creates a turn context and runs the middleware pipeline for an incoming TRUSTED activity.

(Inherited from BotAdapter)
ProcessAsync(HttpRequest, HttpResponse, IBot, CancellationToken)

Accepts an incoming webhook request, creates a turn context, and runs the middleware pipeline for an incoming TRUSTED activity.

RunPipelineAsync(ITurnContext, BotCallbackHandler, CancellationToken)

Starts activity processing for the current bot turn.

(Inherited from BotAdapter)
SendActivitiesAsync(ITurnContext, Activity[], CancellationToken)

Sends activities to the conversation.

UpdateActivityAsync(ITurnContext, Activity, CancellationToken)

Throws a NotImplementedException exception in all cases.

Use(IMiddleware)

Adds middleware to the adapter's pipeline.

(Inherited from BotAdapter)

Extension Methods

UseBotState(BotAdapter, BotState[])

Adds middleware to the adapter to register one or more BotState objects on the turn context. The middleware registers the state objects on the turn context at the start of each turn.

UseState(BotAdapter, UserState, ConversationState, Boolean)
Obsolete.

Registers user and conversation state objects with the adapter. These objects will be available via the turn context's TurnState.Get<T>() method.

UseStorage(BotAdapter, IStorage)

Adds middleware to the adapter to register an IStorage object on the turn context. The middleware registers the state objects on the turn context at the start of each turn.

Applies to