\Horde_Service_Facebook_Notes

Notes methods.

Note that these api calls are marked as BETA in the facebook docs.

Copyright 2009-2017 Horde LLC (http://www.horde.org/)

Summary

Methods
Properties
Constants
__construct()
create()
delete()
get()
No public properties found
No constants found
No protected methods found
$_facebook
$_http
N/A
No private methods found
No private properties found
N/A

Properties

$_http

$_http : \Horde_Http_Client

Type

\Horde_Http_Client

Methods

__construct()

__construct(\Horde_Service_Facebook  $facebook) 

Constructor

Parameters

\Horde_Service_Facebook $facebook

create()

create(string  $title, string  $content, integer  $uid = 'me') : integer

Creates a note with the specified title and content.

Parameters

string $title

Title of the note.

string $content

Content of the note.

integer $uid

The user for whom you are creating a note; defaults to current session user

Returns

integer —

The ID of the note that was just created.

delete()

delete(integer  $note_id) : boolean

Deletes the specified note.

Parameters

integer $note_id

ID of the note you wish to delete

Returns

boolean

get()

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.

Parameters

integer $uid

User whose notes you wish to retrieve

array $note_ids

(Optional) List of specific note IDs by this user to retrieve

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.