JFacebook

Joomla Platform class for interacting with a Facebook API instance.

deprecated
since

3.2.0

deprecated

4.0 Use the joomla/facebook package via Composer instead

package

Joomla.Platform

Methods

__construct

Constructor.

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

3.2.0

Arguments

$oauth

\JFacebookOAuthOAuth client.

$options

\Joomla\Registry\RegistryFacebook options object.

$client

\JHttpThe HTTP client object.

__get

Magic method to lazily create API objects

__get(string $name) : \JFacebookObject
since

3.2.0

throws

\InvalidArgumentException

Arguments

$name

stringName of property to retrieve

Response

\JFacebookObjectFacebook API object (status, user, friends etc).

getOption

Get an option from the JFacebook instance.

getOption(string $key) : mixed
since

3.2.0

Arguments

$key

stringThe name of the option to get.

Response

mixedThe option value.

setOption

Set an option for the JFacebook instance.

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

3.2.0

Arguments

$key

stringThe name of the option to set.

$value

mixedThe option value to set.

Response

\JFacebookThis object for method chaining.

Properties

options

Options for the Facebook object.

since

3.2.0

Type(s)

\Joomla\Registry\Registry

client

The HTTP client object to use in sending HTTP requests.

since

3.2.0

Type(s)

\JHttp

oauth

The OAuth client.

since

3.2.0

Type(s)

\JFacebookOAuth

user

Facebook API object for user.

since

3.2.0

Type(s)

\JFacebookUser

status

Facebook API object for status.

since

3.2.0

Type(s)

\JFacebookStatus

checkin

Facebook API object for checkin.

since

3.2.0

Type(s)

\JFacebookCheckin

event

Facebook API object for event.

since

3.2.0

Type(s)

\JFacebookEvent

group

Facebook API object for group.

since

3.2.0

Type(s)

\JFacebookGroup

note

Facebook API object for note.

since

3.2.0

Type(s)

\JFacebookNote

post

Facebook API object for post.

since

3.2.0

Type(s)

\JFacebookPost

comment

Facebook API object for comment.

since

3.2.0

Type(s)

\JFacebookComment

photo

Facebook API object for photo.

since

3.2.0

Type(s)

\JFacebookPhoto

video

Facebook API object for video.

since

3.2.0

Type(s)

\JFacebookVideo

album

Facebook API object for album.

since

3.2.0

Type(s)

\JFacebookAlbum