Click or drag to resize
FacebookHelperPublishPostOnFacebookPage Method
Publishes the new post on the Facebook page and returns the Facebook post ID.

Namespace: CMS.SocialMarketing
Assembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 8.2.23
Syntax
C#
public static string PublishPostOnFacebookPage(
	string pageId,
	string pageAccessToken,
	string postText
)

Parameters

pageId
Type: SystemString
Facebook's page identifier. Post will be published on that page.
pageAccessToken
Type: SystemString
Access token that will be used for publishing on the page.
postText
Type: SystemString
Text of the post that will be published.

Return Value

Type: String
Facebook identifier of the new post.
Exceptions
ExceptionCondition
FacebookApiExceptionFacebookApiException is thrown when an error occurs while communicating with Facebook.
See Also