PHP Class Horde_Service_Facebook_Links, horde

Copyright 2009-2016 Horde LLC (http://www.horde.org/)
Author: Michael J. Rubinsky ([email protected])
Inheritance: extends Horde_Service_Facebook_Base
Datei anzeigen Open project: horde/horde

Public Methods

Method Description
get ( integer $uid = null, array $options = [] ) : array Retrieves links posted by the given user.
post ( string $link, integer $uid = null, array $options = [] ) : boolean Posts a link on Facebook.

Method Details

get() public method

Retrieves links posted by the given user.
public get ( integer $uid = null, array $options = [] ) : array
$uid integer The user whose links you wish to retrieve
$options array An options array: - limit: (integer) The maximum number of posts to return. - offset: (integer) The post to start returning from. - ids: (array) Only return these specfic links.
return array An array of links.

post() public method

Posts a link on Facebook.
public post ( string $link, integer $uid = null, array $options = [] ) : boolean
$link string URL/link you wish to post
$uid integer User ID that is posting this link
$options array Additional post options: - message: (string) A message to attach to the link. - picture (string) A URL to a thumbnail image to use for this post if link is set. - name: (string) A name for the post if link is set. - caption: (string) The caption, if link is set. - description: (string) A description, if link is specified.
return boolean