FacebookHelperTryGetFacebookPageId Method |
Gets the Facebook page identifier associated with the specified URL and facebook application. May throw exception.
Namespace: CMS.SocialMarketingAssembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 11.0.0
Syntax 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:
BooleanTrue, if the specified URL is a valid Facebook page URL and
appInfo is correctly set; otherwise, false.
See Also