Bitrix API

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
bool

clearCache()

Clear profile cache

public clearCache() : void
Tags
throws
SystemException

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
static

getProfile()

public getProfile() : array<string|int, mixed>|null
Tags
throws
SystemException
Return values
array<string|int, mixed>|null

getProfileCached()

Get profile cached.

public getProfileCached() : Response|array<string|int, mixed>
Return values
Response|array<string|int, mixed>

getRegionsList()

public getRegionsList() : mixed

getUrlAccountList()

Get url account list.

public static getUrlAccountList() : string
Return values
string

getUrlInfo()

Get url info.

public static getUrlInfo() : string
Return values
string

hasPageAccount()

public hasPageAccount() : mixed

loginCompletion()

public loginCompletion() : mixed

normalizeListRow()

public static normalizeListRow(array<string|int, mixed> $row) : mixed
Parameters
$row : array<string|int, mixed>

        
On this page

Search results