Język

FacebookClientWrapper.PostToFacebookApiAsync Metoda

Definicja

Publikuje zdarzenia sterujące webhookami na Facebooku.

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

Parametry

postType
String

Typ posta REST (GET, PUT, POST itd.).

content
String

Treść łańcucha do opublikowania na Facebooku.

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

postType lub content ma wartość null.

Dotyczy