PHP Class Horde_Service_Facebook_Notes, horde

Note that these api calls are marked as BETA in the facebook docs. Copyright 2009-2016 Horde LLC (http://www.horde.org/)
Author: Michael J. Rubinsky ([email protected])
Inheritance: extends Horde_Service_Facebook_Base
Show file Open project: horde/horde

Public Methods

Method Description
create ( string $title, string $content, integer $uid = 'me' ) : integer Creates a note with the specified title and content.
delete ( integer $note_id ) : boolean Deletes the specified note.
get ( integer $uid = 'me', array $note_ids = null ) : array Retrieves all notes by a user. If note_ids are specified, retrieves only those specific notes by that user.

Method Details

create() public method

Creates a note with the specified title and content.
public create ( string $title, string $content, integer $uid = 'me' ) : integer
$title string Title of the note.
$content string Content of the note.
$uid integer The user for whom you are creating a note; defaults to current session user
return integer The ID of the note that was just created.

delete() public method

Deletes the specified note.
public delete ( integer $note_id ) : boolean
$note_id integer ID of the note you wish to delete
return boolean

get() public method

Retrieves all notes by a user. If note_ids are specified, retrieves only those specific notes by that user.
public get ( integer $uid = 'me', array $note_ids = null ) : array
$uid integer User whose notes you wish to retrieve
$note_ids array (Optional) List of specific note IDs by this user to retrieve
return array A list of all of the given user's notes, or an empty list if the viewer lacks permissions or if there are no visible notes.