Share via


FacebookClientWrapper.TakeThreadControlAsync Method

Definition

Sends the take_thread_control webhook event to Facebook.

public virtual System.Threading.Tasks.Task<bool> TakeThreadControlAsync (string userId, string message, System.Threading.CancellationToken cancellationToken);
abstract member TakeThreadControlAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.TakeThreadControlAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function TakeThreadControlAsync (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