Language

FacebookAdapter クラス

定義

注意事項

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.

Facebook APIを通じてFacebookアプリのペイロードやレスポンスを処理できるようにするBotAdapter。

[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
継承
FacebookAdapter
属性
実装

コンストラクター

名前 説明
FacebookAdapter(FacebookClientWrapper, FacebookAdapterOptions, ILogger)
古い.

既存のFacebookクライアントを使って FacebookAdapter クラスの新しいインスタンスを初期化します。

FacebookAdapter(IConfiguration, FacebookAdapterOptions, ILogger)
古い.

設定設定を使って FacebookAdapter クラスの新しいインスタンスを初期化します。

フィールド

名前 説明
BotIdentityKey
古い.

ボット識別キーの文字列値。

(継承元 BotAdapter)
InvokeResponseKey
古い.

TurnState上にある任意のInvokeResponseActivityのキー値です。

(継承元 BotAdapter)
OAuthScopeKey
古い.

OAuthのスコープキーの文字列値です。

(継承元 BotAdapter)

プロパティ

名前 説明
MiddlewareSet
古い.

アダプターのパイプライン内のミドルウェアのコレクションを取得します。

(継承元 BotAdapter)
OnTurnError
古い.

ミドルウェアやアプリケーションの例外をキャッチできるエラーハンドラを取得したり設定したりします。

(継承元 BotAdapter)

メソッド

名前 説明
ContinueConversationAsync(ClaimsIdentity, Activity, BotCallbackHandler, CancellationToken)
古い.

プロアクティブ メッセージを会話に送信します。

(継承元 BotAdapter)
ContinueConversationAsync(ClaimsIdentity, Activity, String, BotCallbackHandler, CancellationToken)
古い.

プロアクティブ メッセージを会話に送信します。

(継承元 BotAdapter)
ContinueConversationAsync(ClaimsIdentity, ConversationReference, BotCallbackHandler, CancellationToken)
古い.

ボットから会話にプロアクティブ メッセージを送信します。

ContinueConversationAsync(ClaimsIdentity, ConversationReference, String, BotCallbackHandler, CancellationToken)
古い.

プロアクティブ メッセージを会話に送信します。

(継承元 BotAdapter)
ContinueConversationAsync(ConversationReference, BotCallbackHandler, CancellationToken)
古い.

会話参照を使って会話に積極的なメッセージを送信します。

ContinueConversationAsync(String, Activity, BotCallbackHandler, CancellationToken)
古い.

プロアクティブ メッセージを会話に送信します。

(継承元 BotAdapter)
ContinueConversationAsync(String, ConversationReference, BotCallbackHandler, CancellationToken)
古い.

プロアクティブ メッセージを会話に送信します。

(継承元 BotAdapter)
CreateConversationAsync(String, String, String, String, ConversationParameters, BotCallbackHandler, CancellationToken)
古い.

指定したチャネルに会話を作成します。

(継承元 BotAdapter)
CreateFacebookMessageFromActivity(Activity)
古い.

Facebookに送るActivityのFacebookMessageインスタンスを作成するためのファクトリーメソッド。

DeleteActivityAsync(ITurnContext, ConversationReference, CancellationToken)
古い.

すべてのケースで NotImplementedException 例外をスローします。

ProcessActivityAsync(ClaimsIdentity, Activity, BotCallbackHandler, CancellationToken)
古い.

ターンコンテキストを作成し、受信するTRUSTED Activityに対してミドルウェアパイプラインを実行します。

(継承元 BotAdapter)
ProcessAsync(HttpRequest, HttpResponse, IBot, CancellationToken)
古い.

受信Webhookリクエストを受け入れ、ターンコンテキストを作成し、受信するTRUSTED Activityのミドルウェアパイプラインを実行します。

RunPipelineAsync(ITurnContext, BotCallbackHandler, CancellationToken)
古い.

現在のボット ターンのアクティビティ処理を開始します。

(継承元 BotAdapter)
SendActivitiesAsync(ITurnContext, Activity[], CancellationToken)
古い.

アクティビティを会話に送信します。

UpdateActivityAsync(ITurnContext, Activity, CancellationToken)
古い.

すべてのケースで NotImplementedException 例外をスローします。

Use(IMiddleware)
古い.

アダプターのパイプラインにミドルウェアを追加します。

(継承元 BotAdapter)

拡張メソッド

名前 説明
UseBotState(BotAdapter, BotState[])
古い.

ターンコンテキストに1つ以上のオブジェクトを登録するためのミドルウェアを追加 BotState 。 ミドルウェアは各ターン開始時にターンコンテキスト上の状態オブジェクトを登録します。

UseState(BotAdapter, UserState, ConversationState, Boolean)
古い.

ユーザーおよび会話状態オブジェクトをアダプタで登録します。 これらのオブジェクトはターンコンテキストの TurnState.Get<T>() メソッドで利用可能です。

UseStorage(BotAdapter, IStorage)
古い.

ターンコンテキストで IStorage オブジェクトを登録するためのミドルウェアをアダプターに追加します。 ミドルウェアは各ターン開始時にターンコンテキスト上の状態オブジェクトを登録します。

適用対象