Språk

FacebookClientWrapper.PostToFacebookApiAsync Metod

Definition

Lägger upp webhook-kontrollhändelser på 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)

Parametrar

postType
String

REST-inläggstypen (GET, PUT, POST, etc).

content
String

Stränginnehållet ska läggas upp på Facebook.

cancellationToken
CancellationToken

En annulleringstoken som kan användas av andra objekt eller trådar för att få meddelande om annullering.

Returer

trueom åtgärden lyckades. annars . false

Undantag

postType eller content är null.

Gäller för