Click or drag to resize
LinkedInHelperPublishShareOnLinkedInCompanyProfile Method
Publishes a new share on company profile identified by LinkedInAccountID. The share is visible to anyone.

Namespace: CMS.SocialMarketing
Assembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 8.2.23
Syntax
C#
public static string PublishShareOnLinkedInCompanyProfile(
	int accountId,
	string comment
)

Parameters

accountId
Type: SystemInt32
Identifier of the account info object (company profile).
comment
Type: SystemString
Comment text.

Return Value

Type: String
Update key of the published share.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when authorization or LinkedIn's company ID resulting from accountId is null, or when comment is null.
ArgumentOutOfRangeExceptionThrown when comment is longer than COMPANY_SHARE_COMMENT_MAX_LENGTH
LinkedInApiUnauthorizedExceptionThrown when protocol error occurs because the request is not authorized properly.
LinkedInApiExceptionThrown when protocol error occurs.
See Also