Facebook

Joomla Framework class for interacting with a Facebook API instance.

deprecated
since

1.0

deprecated

The joomla/facebook package is deprecated

Methods

__construct

Constructor.

__construct(\Joomla\Facebook\OAuth $oauth = null, array $options = array(), \Joomla\Http\Http $client = null) 
since

1.0

Arguments

$oauth

\Joomla\Facebook\OAuthOAuth client.

$options

arrayFacebook options array.

$client

\Joomla\Http\HttpThe HTTP client object.

__get

Magic method to lazily create API objects

__get(string $name) : \Joomla\Facebook\AbstractFacebookObject
since

1.0

throws

\InvalidArgumentExceptionIf $name is not a valid sub class.

Arguments

$name

stringName of property to retrieve

Response

\Joomla\Facebook\AbstractFacebookObjectFacebook API object (status, user, friends etc).

getOption

Get an option from the Facebook instance.

getOption(string $key) : mixed
since

1.0

Arguments

$key

stringThe name of the option to get.

Response

mixedThe option value.

setOption

Set an option for the Facebook instance.

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

1.0

Arguments

$key

stringThe name of the option to set.

$value

mixedThe option value to set.

Response

\Joomla\Facebook\FacebookThis object for method chaining.

Properties

options

Options for the Facebook object.

since

1.0

Type(s)

array

client

The HTTP client object to use in sending HTTP requests.

since

1.0

Type(s)

\Joomla\Http\Http

oauth

The OAuth client.

since

1.0

Type(s)

\Joomla\Facebook\OAuth

user

Facebook API object for user.

since

1.0

Type(s)

\Joomla\Facebook\User

status

Facebook API object for status.

since

1.0

Type(s)

\Joomla\Facebook\Status

checkin

Facebook API object for checkin.

since

1.0

Type(s)

\Joomla\Facebook\Checkin

event

Facebook API object for event.

since

1.0

Type(s)

\Joomla\Facebook\Event

group

Facebook API object for group.

since

1.0

Type(s)

\Joomla\Facebook\Group

note

Facebook API object for note.

since

1.0

Type(s)

\Joomla\Facebook\Note

post

Facebook API object for post.

since

1.0

Type(s)

\Joomla\Facebook\Post

comment

Facebook API object for comment.

since

1.0

Type(s)

\Joomla\Facebook\Comment

photo

Facebook API object for photo.

since

1.0

Type(s)

\Joomla\Facebook\Photo

video

Facebook API object for video.

since

1.0

Type(s)

\Joomla\Facebook\Video

album

Facebook API object for album.

since

1.0

Type(s)

\Joomla\Facebook\Album