$_facebook
$_facebook : \Horde_Service_Facebook
Photos methods for Horde_Service_Facebook
Copyright 2009-2017 Horde LLC (http://www.horde.org/)
$_facebook : \Horde_Service_Facebook
__construct(\Horde_Service_Facebook $facebook)
Constructor
\Horde_Service_Facebook |
addTag(string $pid, array $options = array()) : boolean
Adds a tag with the given information to a photo. See the wiki for details:
http://wiki.developers.facebook.com/index.php/Photos.addTag
string | $pid | The ID of the photo to be tagged |
array | $options | An options array:
|
createAlbum(string $name, string $description = '', string $uid = 'me') : array
Creates and returns a new album owned by the specified user or the current session user.
string | $name | The name of the album. |
string | $description | (Optional) A description of the album. |
string | $uid | (Optional) User id for creating the album; if not specified, the session user is used. |
An album object
get(array $filter = array(), array $options = array()) : array
Returns photos according to the filters specified.
array | $filter | An options array containing a maximum of ONE of the following values:
|
array | $options | Additional options:
|
An array of photo objects.
getAlbums(integer $uid = 'me', string $aids = null) : array
Returns the albums created by the given user.
Note that at least one of the (uid, aids) parameters must be specified.
integer | $uid | (Optional) The uid of the user whose albums you want. A null will return the albums of the session user. |
string | $aids | (Optional) A comma-separated list of aids to restricti the query. |
of album objects.
upload(array $params = array()) : array
Uploads a photo.
array | $params | The parameter array.
|
An array of user objects