Share via


FacebookClientWrapper.RequestThreadControlAsync Method

Definition

Sends the request_thread_control webhook event to Facebook.

public virtual System.Threading.Tasks.Task<bool> RequestThreadControlAsync (string userId, string message, System.Threading.CancellationToken cancellationToken);
abstract member RequestThreadControlAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.RequestThreadControlAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function RequestThreadControlAsync (userId As String, message As String, cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

userId
String

The sender user ID.

message
String

An optional message for the metadata parameter.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

true if the operation succeeded; otherwise, false.

Exceptions

userId is null.

Applies to