Delen via


FacebookClientWrapper.PostToFacebookApiAsync Methode

Definitie

Plaatst webhookbeheersevenementen op 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)

Parameters

postType
String

Het REST-berichttype (GET, PUT, POST, enzovoort).

content
String

De tekenreeksinhoud die op Facebook moet worden geplaatst.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om een kennisgeving van annulering te ontvangen.

Retouren

true indien de bewerking is geslaagd; anders, false.

Uitzonderingen

postType of content is null.

Van toepassing op