Orpheus

FacebookService extends Facebook
in package

Table of Contents

Constants

ALBUM_TYPE_PROFILE  = 'profile'

Properties

$connectedUser  : bool
$service  : mixed

Methods

__construct()  : mixed
connectUser()  : bool|AccessToken
Connect the user using the facebook api
disconnectUser()  : mixed
Disconnect the logged user
getAccessToken()  : string
Get the access token
getLoginUrl()  : mixed
getService()  : FacebookService
Get the singleton service
getUser()  : GraphUser
Get the current user
isUserConnected()  : bool
Test if user is connected with facebook on this app

Constants

Properties

$connectedUser

protected bool $connectedUser = null

True only if the use is just connnected

Methods

__construct()

public __construct([array<string|int, mixed> $config = array() ]) : mixed
Parameters
$config : array<string|int, mixed> = array()

connectUser()

Connect the user using the facebook api

public connectUser() : bool|AccessToken
Return values
bool|AccessToken

disconnectUser()

Disconnect the logged user

public disconnectUser() : mixed
Tags
throws
Exception

getAccessToken()

Get the access token

public getAccessToken() : string
Return values
string

getLoginUrl()

public getLoginUrl(mixed $redirectUrl[, array<string|int, mixed> $scope = array() ][, mixed $separator = '&' ]) : mixed
Parameters
$redirectUrl : mixed
$scope : array<string|int, mixed> = array()
$separator : mixed = '&'

getUser()

Get the current user

public getUser([array<string|int, string>|string|null $fields = null ]) : GraphUser
Parameters
$fields : array<string|int, string>|string|null = null
Return values
GraphUser

isUserConnected()

Test if user is connected with facebook on this app

public isUserConnected() : bool
Tags
throws
Exception
Return values
bool

							
On this page

Search results