FacebookHelper.TryGetFacebookPageId 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
Syntaxpublic static bool TryGetFacebookPageId(
string pageUrl,
FacebookApplicationInfo appInfo,
out string pageId
)
Parameters
- pageUrl
- Type: System.String
The URL to get the Facebook page identifier from. - appInfo
- Type: CMS.SocialMarketing.FacebookApplicationInfo
Facebook application associated with given pageUrl. - pageId
- Type: System.String
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