语言

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 为 null。

适用于