Freigeben über


FacebookClientWrapper.PostToFacebookApiAsync Methode

Definition

Veröffentlicht Webhooksteuerelementereignisse 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-Posttyp (GET, PUT, POST usw.).

content
String

Der Zeichenfolgeninhalt, der auf Facebook gepostet werden soll.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um Nachricht vom Abbruch zu empfangen.

Gibt zurück

true, wenn die Operation erfolgreich ausgeführt wurde, andernfalls false.

Ausnahmen

postType oder content ist NULL.

Gilt für: