語言

FacebookClientWrapper.PostToFacebookApiAsync 方法

定義

將 webhook 控制事件發佈到 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)

參數

postType
String

REST 貼文類型(GET、PUT、POST 等)。

content
String

串燒內容將發布到 Facebook。

cancellationToken
CancellationToken

一種可被其他物件或執行緒用來接收取消通知的取消標記。

傳回

true若手術成功;否則,。 false

例外狀況

postType 或 content 為空值。

適用於