AccountFacebook extends Account
Class Account
Table of Contents
Constants
- PROFILE_INFO_CACHE_TTL = 86400
- TYPE_CODE = \Bitrix\Seo\LeadAds\Service::TYPE_FACEBOOK
- URL_ACCOUNT_LIST = 'https://www.facebook.com/bookmarks/pages'
- URL_INFO = 'https://www.facebook.com/business/a/lead-ads'
Methods
- __construct() : mixed
- Account constructor.
- checkNewAuthInfo() : bool
- clearCache() : void
- Clear profile cache
- create() : static
- getList() : Response|mixed|null
- getProfile() : array<string|int, mixed>|null
- getProfileCached() : Response|array<string|int, mixed>
- Get profile cached.
- getRegionsList() : mixed
- getRequest() : Request
- getUrlAccountList() : string
- Get url account list.
- getUrlInfo() : string
- Get url info.
- hasPageAccount() : mixed
- loginCompletion() : mixed
- logout() : mixed
- normalizeListRow() : mixed
- setRequest() : mixed
- setService() : mixed
Constants
PROFILE_INFO_CACHE_TTL
public
mixed
PROFILE_INFO_CACHE_TTL
= 86400
TYPE_CODE
public
mixed
TYPE_CODE
= \Bitrix\Seo\LeadAds\Service::TYPE_FACEBOOK
URL_ACCOUNT_LIST
public
mixed
URL_ACCOUNT_LIST
= 'https://www.facebook.com/bookmarks/pages'
URL_INFO
public
mixed
URL_INFO
= 'https://www.facebook.com/business/a/lead-ads'
Methods
__construct()
Account constructor.
public
__construct([null|string $accountId = null ]) : mixed
Parameters
- $accountId : null|string = null
-
Account ID.
checkNewAuthInfo()
public
checkNewAuthInfo() : bool
Return values
boolclearCache()
Clear profile cache
public
clearCache() : void
Tags
create()
public
static create(mixed $type[, null $parameters = null ][, IService|null $service = null ]) : static
Parameters
- $type : mixed
- $parameters : null = null
- $service : IService|null = null
Return values
staticgetList()
public
getList() : Response|mixed|null
Return values
Response|mixed|nullgetProfile()
public
getProfile() : array<string|int, mixed>|null
Tags
Return values
array<string|int, mixed>|nullgetProfileCached()
Get profile cached.
public
getProfileCached() : Response|array<string|int, mixed>
Return values
Response|array<string|int, mixed>getRegionsList()
public
getRegionsList() : mixed
getRequest()
public
getRequest() : Request
Return values
RequestgetUrlAccountList()
Get url account list.
public
static getUrlAccountList() : string
Return values
stringgetUrlInfo()
Get url info.
public
static getUrlInfo() : string
Return values
stringhasPageAccount()
public
hasPageAccount() : mixed
loginCompletion()
public
loginCompletion() : mixed
logout()
public
logout() : mixed
normalizeListRow()
public
static normalizeListRow(array<string|int, mixed> $row) : mixed
Parameters
- $row : array<string|int, mixed>
setRequest()
public
setRequest(Request $request) : mixed
Parameters
- $request : Request
setService()
public
setService(IService $service) : mixed
Parameters
- $service : IService