URLShortenerHelper GetDefaultURLShortenerForSocialNetworkInternal Method Kentico 8.0 API Reference
Retrieves the URL shortener for the specified social network posts, and returns it.

Namespace: CMS.SocialMarketing
Assembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

socialNetwork
Type: CMS.SocialMarketing SocialNetworkTypeEnum
The type of the social network.
siteIdentifier
Type: CMS.DataEngine SiteInfoIdentifier
Determines which site's settings are used. Provide null to use global settings.

Return Value

Type: URLShortenerTypeEnum
The URL shortener for the specified social network posts.
Remarks

If the URL shortener is not set or the value in the settings is not valid or the social network with the specified name does not exist, a special value URLShortenerTypeEnum.None is returned.
See Also