JFacebook
Joomla Platform class for interacting with a Facebook API instance.
since |
3.2.0 |
---|---|
deprecated |
4.0 Use the |
package |
Joomla.Platform |
Methods
__construct
Constructor.
__construct(\JFacebookOAuth $oauth = null, \Joomla\Registry\Registry $options = null, \JHttp $client = null)
since |
3.2.0 |
---|
Arguments
- $oauth
\JFacebookOAuth
OAuth client.- $options
\Joomla\Registry\Registry
Facebook options object.- $client
\JHttp
The HTTP client object.
__get
Magic method to lazily create API objects
__get(string $name) : \JFacebookObject
since |
3.2.0 |
---|---|
throws |
|
Arguments
- $name
string
Name of property to retrieve
Response
\JFacebookObject
Facebook API object (status, user, friends etc).
getOption
Get an option from the JFacebook instance.
getOption(string $key) : mixed
since |
3.2.0 |
---|
Arguments
- $key
string
The name of the option to get.
Response
mixed
The option value.
setOption
Set an option for the JFacebook instance.
setOption(string $key, mixed $value) : \JFacebook
since |
3.2.0 |
---|
Arguments
- $key
string
The name of the option to set.- $value
mixed
The option value to set.
Response
\JFacebook
This object for method chaining.
Properties
client
The HTTP client object to use in sending HTTP requests.
since |
3.2.0 |
---|
Type(s)
\JHttp