class JFacebook

Joomla Platform class for interacting with a Facebook API instance.

Methods

__construct( JFacebookOAuth $oauth = null, Registry $options = null, JHttp $client = null)

Constructor.

__get( string $name)

Magic method to lazily create API objects

mixed
getOption( string $key)

Get an option from the JFacebook instance.

setOption( string $key, mixed $value)

Set an option for the JFacebook instance.

Details

__construct( JFacebookOAuth $oauth = null, Registry $options = null, JHttp $client = null)

Constructor.

Parameters

JFacebookOAuth $oauth OAuth client.
Registry $options Facebook options object.
JHttp $client The HTTP client object.

JFacebookObject __get( string $name)

Magic method to lazily create API objects

Parameters

string $name Name of property to retrieve

Return Value

JFacebookObject Facebook API object (status, user, friends etc).

Exceptions

InvalidArgumentException

mixed getOption( string $key)

Get an option from the JFacebook instance.

Parameters

string $key The name of the option to get.

Return Value

mixed The option value.

JFacebook setOption( string $key, mixed $value)

Set an option for the JFacebook instance.

Parameters

string $key The name of the option to set.
mixed $value The option value to set.

Return Value

JFacebook This object for method chaining.