LinkedInPostInfoProviderPublishLinkedInPost Method |
Publishes the LinkedIn post on the appropriate LinkedIn account (company profile) in proper time.
Uses scheduler for future posts.
When modifying scheduled posts, always call the
TryCancelScheduledPublishLinkedInPost(Int32) first.
Namespace: CMS.SocialMarketingAssembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 13.0.131
Syntax public static void PublishLinkedInPost(
int postInfoId
)
Parameters
- postInfoId
- Type: SystemInt32
Identifier of the LinkedInPostInfo that will be published.
Exceptions Exception | Condition |
---|
Exception | When post does not exist, has already been published to LinkedIn or the account is not valid. |
ArgumentException | Thrown when authorization or LinkedIn's company ID resulting from accountId is null, or when comment is null. |
ArgumentOutOfRangeException | Thrown when comment is longer than COMPANY_SHARE_COMMENT_MAX_LENGTH |
LinkedInApiUnauthorizedException | Thrown when protocol error occurs because the request is not authorized properly. |
LinkedInApiException | Thrown when protocol error occurs. |
See Also