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

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

Parameters

pageUrl
Type: SystemString
The URL to get the Facebook page identifier from.
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; otherwise, false.
See Also