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

例外

postTypecontent 为 null。

适用于