Język

FacebookClientWrapper.PassThreadControlAsync Metoda

Definicja

Wysyła wydarzenie z pass_thread_control webhookiem na Facebooka.

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

Parametry

targetAppId
String

ID aplikacji, której docelowo przekazywać kontrolę.

userId
String

ID użytkownika nadawcy.

message
String

Opcjonalna wiadomość dla parametru metadanych.

cancellationToken
CancellationToken

Token anulowania, który może być używany przez inne obiekty lub wątki do otrzymywania powiadomienia o anulowaniu.

Zwraca

true jeśli operacja zakończyła się pomyślnie; w przeciwnym razie, false.

Wyjątki

targetAppId lub userId ma wartość null.

Dotyczy