FacebookHelperPublishPostOnFacebookPageInternal Method |
Publishes the new post on the Facebook page and returns the Facebook post ID.
Namespace: CMS.SocialMarketingAssembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 12.0.0
Syntaxprotected virtual string PublishPostOnFacebookPageInternal(
string pageId,
string pageAccessToken,
string postText,
string appSecret
)
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. - appSecret
- Type: SystemString
Facebook application secret key for improving security.
Return Value
Type:
StringFacebook identifier of the new post.
ExceptionsException | Condition |
---|
FacebookApiException | FacebookApiException is thrown when an error occurs while communicating with Facebook. |
See Also