AccountFacebook extends Account
Table of Contents
Constants
- PROFILE_INFO_CACHE_TTL = 86400
- REGIONS_LIST_CACHE_TTL = 60 * 60 * 24 * 30
- TYPE_CODE = 'facebook'
Methods
- __construct() : mixed
- checkNewAuthInfo() : bool
- clearCache() : void
- Clear profile cache
- create() : static
- getList() : Response
- getProfile() : Response
- getProfileCached() : array<string|int, mixed>
- Get profile data (cached)
- getRegionsList() : mixed
- getRequest() : Request
- normalizeListRow() : mixed
- setRequest() : mixed
- setService() : mixed
Constants
PROFILE_INFO_CACHE_TTL
public
mixed
PROFILE_INFO_CACHE_TTL
= 86400
REGIONS_LIST_CACHE_TTL
public
mixed
REGIONS_LIST_CACHE_TTL
= 60 * 60 * 24 * 30
TYPE_CODE
public
mixed
TYPE_CODE
= 'facebook'
Methods
__construct()
public
__construct() : mixed
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
Return values
ResponsegetProfile()
public
getProfile() : Response
Return values
ResponsegetProfileCached()
Get profile data (cached)
public
getProfileCached() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getRegionsList()
public
getRegionsList() : mixed
getRequest()
public
getRequest() : Request
Return values
RequestnormalizeListRow()
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