Click or drag to resize
FacebookHelperTryGetFacebookPageId Method
Gets the Facebook page identifier associated with the specified URL and facebook application. May throw exception.

Namespace: CMS.SocialMarketing
Assembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 11.0.0
Syntax
C#
public static bool TryGetFacebookPageId(
	string pageUrl,
	FacebookApplicationInfo appInfo,
	out string pageId
)

Parameters

pageUrl
Type: SystemString
The URL to get the Facebook page identifier from.
appInfo
Type: CMS.SocialMarketingFacebookApplicationInfo
Facebook application associated with given pageUrl.
pageId
Type: SystemString
The Facebook page identifier, if the specified URL is a valid Facebook page URL; otherwise, null.

Return Value

Type: Boolean
True, if the specified URL is a valid Facebook page URL and appInfo is correctly set; otherwise, false.
See Also