JFacebookOAuth

Extends \JOAuth2Client

Joomla Platform class for generating Facebook API access token.

deprecated
since

3.2.0

deprecated

4.0 Use the joomla/facebook package via Composer instead

package

Joomla.Platform

Methods

__construct

Constructor.

__construct(\Joomla\Registry\Registry $options = null, \JHttp $http = null, \JInput $input = null, \JApplicationWeb $application = null) 
inherited
since

3.1.4

Arguments

$options

\Joomla\Registry\RegistryJOAuth2Client options object

$http

\JHttpThe HTTP client object

$input

\JInputThe input object

$application

\JApplicationWebThe application object

authenticate

Get the access token or redict to the authentication URL.

authenticate() : string
inherited
since

3.1.4

throws

\RuntimeException

Response

stringThe access token

createUrl

Create the URL for authentication.

createUrl() : \JHttpResponse
inherited
since

3.1.4

throws

\InvalidArgumentException

Response

\JHttpResponseThe HTTP response

getOption

Get an option from the JOAuth2Client instance.

getOption(string $key) : mixed
inherited
since

3.1.4

Arguments

$key

stringThe name of the option to get

Response

mixedThe option value

getScope

Method to get the current scope

getScope() : string
since

3.2.0

Response

stringComma separated list of permissions.

getToken

Get the access token from the JOAuth2Client instance.

getToken() : array
inherited
since

3.1.4

Response

arrayThe access token

isAuthenticated

Verify if the client has been authenticated

isAuthenticated() : boolean
inherited
since

3.1.4

Response

booleanIs authenticated

query

Send a signed Oauth request.

query(string $url, mixed $data = null, array $headers = array(), string $method = 'get', integer $timeout = null) : string
inherited
since

3.1.4

throws

\InvalidArgumentException

\RuntimeException

Arguments

$url

stringThe URL for the request.

$data

mixedThe data to include in the request

$headers

arrayThe headers to send with the request

$method

stringThe method with which to send the request

$timeout

integerThe timeout for the request

Response

stringThe URL.

refreshToken

Refresh the access token instance.

refreshToken(string $token = null) : array
inherited
since

3.1.4

throws

\Exception

\RuntimeException

Arguments

$token

stringThe refresh token

Response

arrayThe new access token

setOption

Set an option for the JOAuth2Client instance.

setOption(string $key, mixed $value) : \JOAuth2Client
inherited
since

3.1.4

Arguments

$key

stringThe name of the option to set

$value

mixedThe option value to set

Response

\JOAuth2ClientThis object for method chaining

setScope

Method used to set permissions.

setScope(string $scope) : \JFacebookOauth
since

3.2.0

Arguments

$scope

stringComma separated list of permissions.

Response

\JFacebookOauthThis object for method chaining

setToken

Set an option for the JOAuth2Client instance.

setToken(array $value) : \JOAuth2Client
inherited
since

3.1.4

Arguments

$value

arrayThe access token

Response

\JOAuth2ClientThis object for method chaining

Properties

options

Options for the JOAuth2Client object.

inherited
since

3.1.4

Type(s)

\Joomla\Registry\Registry

http

The HTTP client object to use in sending HTTP requests.

inherited
since

3.1.4

Type(s)

\JHttp

input

The input object to use in retrieving GET/POST data.

inherited
since

3.1.4

Type(s)

\JInput

application

The application object to send HTTP headers for redirects.

inherited
since

3.1.4

Type(s)

\JApplicationWeb