Share via


FacebookClientWrapper 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.

Client for interacting with 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 FacebookClientWrapper
[<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 FacebookClientWrapper = class
Public Class FacebookClientWrapper
Inheritance
FacebookClientWrapper
Attributes

Constructors

FacebookClientWrapper(FacebookClientWrapperOptions)

Initializes a new instance of the FacebookClientWrapper class.

Methods

GetAppSecretProof()

Generates the app secret proof used to increase security on calls to the Graph API.

PassThreadControlAsync(String, String, String, CancellationToken)

Sends the pass_thread_control webhook event to Facebook.

PostToFacebookApiAsync(String, String, CancellationToken)

Posts webhook control events to Facebook.

RequestThreadControlAsync(String, String, CancellationToken)

Sends the request_thread_control webhook event to Facebook.

SendMessageAsync(String, FacebookMessage, HttpMethod, CancellationToken)

Sends a REST message to Facebook.

TakeThreadControlAsync(String, String, CancellationToken)

Sends the take_thread_control webhook event to Facebook.

VerifySignature(HttpRequest, String)

Verifies the SHA1 signature of the raw request payload before bodyParser parses it will abort parsing if signature is invalid, and pass a generic error to response.

VerifyWebhookAsync(HttpRequest, HttpResponse, CancellationToken)

Verifies the verify token from the message. If the token matches the one configured, sends back the challenge.

Applies to