Sprache

FacebookClientWrapper.PostToFacebookApiAsync Methode

Definition

Veröffentlicht Webhook-Kontrollereignisse auf Facebook.

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)

Parameter

postType
String

Der REST-Post-Typ (GET, PUT, POST usw.).

content
String

Der Inhalt des Strings wird auf Facebook gepostet.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

truewenn der Vorgang erfolgreich war; andernfalls . false

Ausnahmen

postType oder content ist NULL.

Gilt für: