Share via


FacebookClientWrapper.PostToFacebookApiAsync Method

Definition

Posts webhook control events to 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

The REST post type (GET, PUT, POST, etc).

content
String

The string content to be posted to Facebook.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

true if the operation succeeded; otherwise, false.

Exceptions

postType or content is null.

Applies to