Class JFacebookLink

Description

Facebook API Link class for the Joomla Platform.

Located in /libraries/joomla/facebook/link.php (line 23)

JFacebookObject
   |
   --JFacebookLink
Method Summary
 mixed createComment (string $link, string $message)
 boolean createLike (string $link)
 mixed deleteComment (string $comment)
 boolean deleteLike (string $link)
 mixed getComments (string $link, [integer $limit = 0], [integer $offset = 0], [string $until = null], [string $since = null])
 mixed getLikes (string $link, [integer $limit = 0], [integer $offset = 0], [string $until = null], [string $since = null])
 mixed getLink (string $link)
Variables
Methods
createComment (line 67)

Method to comment on a link. Requires authentication and publish_stream permission.

  • return: The decoded JSON response or false if the client is not authenticated.
  • since: 13.1
  • access: public
mixed createComment (string $link, string $message)
  • string $link: The link id.
  • string $message: The comment's text.
createLike (line 117)

Method to like a link. Requires authentication and publish_stream permission.

  • return: Returns true if successful, and false otherwise.
  • since: 13.1
  • access: public
boolean createLike (string $link)
  • string $link: The link id.
deleteComment (line 85)

Method to delete a comment. Requires authentication and publish_stream permission.

  • return: The decoded JSON response or false if the client is not authenticated.
  • since: 13.1
  • access: public
mixed deleteComment (string $comment)
  • string $comment: The comment's id.
deleteLike (line 131)

Method to unlike a link. Requires authentication and publish_stream permission.

  • return: Returns true if successful, and false otherwise.
  • since: 13.1
  • access: public
boolean deleteLike (string $link)
  • string $link: The link id.
getComments (line 52)

Method to get a link's comments. Requires authentication and read_stream permission for non-public links.

  • return: The decoded JSON response or false if the client is not authenticated.
  • since: 13.1
  • access: public
mixed getComments (string $link, [integer $limit = 0], [integer $offset = 0], [string $until = null], [string $since = null])
  • string $link: The link id.
  • integer $limit: The number of objects per page.
  • integer $offset: The object's number on the page.
  • string $until: A unix timestamp or any date accepted by strtotime.
  • string $since: A unix timestamp or any date accepted by strtotime.
getLikes (line 103)

Method to get link's likes. Requires authentication and read_stream permission for non-public links.

  • return: The decoded JSON response or false if the client is not authenticated.
  • since: 13.1
  • access: public
mixed getLikes (string $link, [integer $limit = 0], [integer $offset = 0], [string $until = null], [string $since = null])
  • string $link: The link id.
  • integer $limit: The number of objects per page.
  • integer $offset: The object's number on the page.
  • string $until: A unix timestamp or any date accepted by strtotime.
  • string $since: A unix timestamp or any date accepted by strtotime.
getLink (line 34)

Method to get a link. Requires authentication and read_stream permission for non-public links.

  • return: The decoded JSON response or false if the client is not authenticated.
  • since: 13.1
  • access: public
mixed getLink (string $link)
  • string $link: The link id.

Inherited Methods

Inherited From JFacebookObject

 JFacebookObject::__construct()
 JFacebookObject::createConnection()
 JFacebookObject::deleteConnection()
 JFacebookObject::fetchUrl()
 JFacebookObject::get()
 JFacebookObject::getConnection()
 JFacebookObject::getOAuth()
 JFacebookObject::sendRequest()
 JFacebookObject::setOAuth()

Documentation generated on Tue, 19 Nov 2013 15:07:09 +0100 by phpDocumentor 1.4.3