An individual entry in a profile's feed as represented in the Graph API.
The User, Page, Application and Group objects have feed connections containing post objects that represent their walls. In addition the User and Page objects have a connection named posts containing Posts made by the User and the Page respectively.
A post from Facebook Platform:
https://graph.facebook.com/19292868552_10150189643478553
A Post has the following fields.
Querying without the read_stream permission will return only the public view of the data (i.e. data that can be see when the user is logged out).
| Name | Description | Permissions | Returns |
id | The post ID | Requires |
|
from | Information about the user who posted the message | Requires | object containing the |
to | Profiles mentioned or targeted in this post | Requires | Contains in |
message | The message | Requires |
|
message_tags | Objects tagged in the message (Users, Pages, etc) | Requires |
|
picture | If available, a link to the picture included with this post | Requires |
|
link | The link attached to this post | Requires |
|
name | The name of the link | Requires |
|
caption | The caption of the link (appears beneath the link name) | Requires |
|
description | A description of the link (appears beneath the link caption) | Requires |
|
source | A URL to a Flash movie or video file to be embedded within the post | Requires |
|
properties | A list of properties for an uploaded video, for example, the length of the video | Requires |
|
icon | A link to an icon representing the type of this post | Requires |
|
actions | A list of available actions on the post (including commenting, liking, and an optional app-specified action) | Requires |
|
privacy | The privacy settings of the |
| A JSON object with fields described here |
type | A string indicating the type for this post (including link, photo, video) | Requires |
|
likes | Likes for this post | Requires | Structure containing a |
place | Location associated with a Post, if any |
|
|
story | Text of stories not intentionally generated by users, such as those generated when two users become friends; you must have the "Include recent activity stories" migration enabled in your app to retrieve these stories |
|
|
story_tags | Objects (Users, Pages, etc) tagged in a non-intentional story; you must have the "Include recent activity stories" migration enabled in your app to retrieve these tags |
|
|
with_tags | Objects (Users, Pages, etc) tagged as being with the publisher of the post ("Who are you with?" on Facebook) |
|
|
comments | Comments for this post |
| Structure containing a |
object_id | The Facebook object |
|
|
application | Information about the application this post came from |
| object containing the |
created_time | The time the post was initially published |
|
|
updated_time | The time of the last comment on this post |
|
|
include_hidden | Whether to include posts that have been set to Hidden from Timeline |
|
|
You can delete a post as long as your application created the post. You delete a post by issuing an HTTP DELETE request to the POST_ID object with publish_stream permission.
If the delete is successful, you get the following return.
| Description | Type |
|---|---|
| If the delete succeeded | boolean |
A Post has the following connections.
| Name | Description | Permissions | Returns |
| comments | All of the comments on this post. | Any valid |
|
| likes | The likes on this post. | Any valid |
|
| insights | Insights information for this Post, If this Post is from a Facebook Page. | A valid |
|
You can write to the POST_ID/comments connection to post a comment to the post by issuing an HTTP POST request with the publish_stream permission and following parameters.
| Parameter | Description | Type | Required |
|---|---|---|---|
message |
Comment text | string |
yes |
If the write is successful, you get the following return.
| Name | Description | Type |
|---|---|---|
id |
The new comment ID | string |
You can delete a comment by issuing an HTTP DELETE request to the COMMENT_ID object with the publish_stream permission.
If the delete is successful, you get the following return.
| Description | Type |
|---|---|
| If the delete succeeded | boolean |
You can like a Post by issuing a HTTP POST request to the POST_ID/likes connection with the publish_stream permission. You can suppress the notification created when liking a Post by passing a notify parameter with value of false.
If the write is successful, you get the following return.
| Description | Type |
|---|---|
| If the like succeeded | boolean |
You can unlike a post by issuing an HTTP DELETE request to the POST_ID/likes connection with the publish_stream permission.
If the delete is successful, you get the following return.
| Description | Type |
|---|---|
| If the unlike succeeded | boolean |