Graph:Note
From Facebook Developer Wiki (FbDevWiki.com)
A Facebook note
Contents |
Example
https://graph.facebook.com/122788341354 (The note announcing Facebook for iPhone 3.0)
Properties
Name | Description | Permissions | Returns | Condition |
---|---|---|---|---|
id | The note ID | Available to everyone on Facebook by default | A JSON string | |
from | The profile that created the note | Available to everyone on Facebook by default | A JSON object containing id and name fields |
|
subject | The title of the note | Available to everyone on Facebook by default | A JSON string | |
message | The content of the note | Available to everyone on Facebook by default | A JSON string containing HTML text | |
created_time | The time the note was initially published | Available to everyone on Facebook by default | A JSON string containing a IETF RFC 3339 datetime | |
updated_time | The time the note was last updated | Available to everyone on Facebook by default | A JSON string containing a IETF RFC 3339 datetime | |
icon | The icon that Facebook displays with notes | Available to everyone on Facebook by default | A JSON string containing a valid URL |
Connections
Name | Description | Permissions | Returns |
---|---|---|---|
comments | All of the comments on this note | Available to everyone on Facebook by default | A JSON array of objects with id , from , message and create_time fields
|
likes | Users who like the note | Available to everyone on Facebook by default | A JSON array of objects with id and name fields
|
Publishing
Requires the publish_stream permission.
To publish a note, POST
the subject
and message
fields to the profile (User or Page) at http://graph.facebook.com/PROFILE_ID/notes
.
curl -F 'access_token=...' \ -F 'subject=This is a note' \ -F 'message=Test note.' \ https://graph.facebook.com/me/notes