Class Horde_Service_Facebook_Notes
Notes methods.
Note that these api calls are marked as BETA in the facebook docs.
Copyright 2009-2012 Horde LLC (http://www.horde.org/)
-
Horde_Service_Facebook_Base
-
Horde_Service_Facebook_Notes
Methods summary
public
integer
&
|
#
create( string $title, string $content, integer $uid = null )
Creates a note with the specified title and content.
Creates a note with the specified title and content.
Parameters
- $title
- Title of the note.
- $content
- Content of the note.
- $uid
- <p>The user for whom you are creating a note;
defaults to current session user</p>
Returns
integer The ID of the note that was just created.
|
public
boolean
&
|
#
delete( integer $note_id, integer $uid = null )
Deletes the specified note.
Deletes the specified note.
Parameters
- $note_id
- ID of the note you wish to delete
- $uid
- <p>Owner of the note you wish to delete;
defaults to current session user</p>
Returns
boolean
|
public
boolean
&
|
#
edit( integer $note_id, string $title, string $content )
Edits a note, replacing its title and contents with the title
and contents specified.
Edits a note, replacing its title and contents with the title
and contents specified.
Parameters
- $note_id
- ID of the note you wish to edit
- $title
- Replacement title for the note
- $content
- Replacement content for the note
Returns
boolean
|
public
array
&
|
#
get( integer $uid, array $note_ids = null )
Retrieves all notes by a user. If note_ids are specified,
retrieves only those specific notes by that user.
Retrieves all notes by a user. If note_ids are specified,
retrieves only those specific notes by that user.
Parameters
- $uid
- User whose notes you wish to retrieve
- $note_ids
- <p>(Optional) List of specific note
IDs by this user to retrieve</p>
Returns
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.
|