Udostępnij przez


FacebookClientWrapper.PostToFacebookApiAsync Metoda

Definicja

Publikuje zdarzenia sterowania elementem webhook 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 wpisu REST (GET, PUT, POST itp.).

content
String

Zawartość ciągu do opublikowania na Facebooku.

cancellationToken
CancellationToken

Token odwołania, używany przez inne obiekty lub wątki do otrzymania 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