com.restfb.types
Class Post

java.lang.Object
  extended by com.restfb.types.FacebookType
      extended by com.restfb.types.NamedFacebookType
          extended by com.restfb.types.Post
All Implemented Interfaces:
Serializable

public class Post
extends NamedFacebookType

Represents the Post Graph API type.

Since:
1.5
Author:
Mark Allen
See Also:
Serialized Form

Nested Class Summary
static class Post.Action
          Represents the Action Graph API type.
static class Post.Comments
          Represents the Comments Graph API type.
static class Post.Likes
          Represents the Likes Graph API type
static class Post.Place
          Represents the Place Graph API type
static class Post.Privacy
          Represents the Privacy Graph API type.
static class Post.Property
          Represents the undocumented Property type.
 
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
 
Constructor Summary
Post()
           
 
Method Summary
 List<Post.Action> getActions()
          A list of available action names and links (including commenting, liking, and an optional app-specified action).
 NamedFacebookType getApplication()
          The application used to create this post.
 String getAttribution()
          A string indicating which application was used to create this post.
 String getCaption()
          The caption of the link (appears beneath the link name).
 Post.Comments getComments()
          The comments for this post.
 Date getCreatedTime()
          The time the post was initially published.
 String getDescription()
          A description of the link (appears beneath the link caption).
 CategorizedFacebookType getFrom()
          An object containing the ID and name of the user who posted the message.
 String getIcon()
          A link to an icon representing the type of this post.
 Post.Likes getLikes()
          The likes on this post.
 Long getLikesCount()
          The number of likes on this post.
 String getLink()
          The link attached to this post.
 String getMessage()
          The message.
 String getObjectId()
          The Facebook object id for an uploaded photo or video.
 String getPicture()
          If available, a link to the picture included with this post.
 Post.Place getPlace()
          The place where this post occurred.
 Post.Privacy getPrivacy()
          The privacy settings for this post.
 List<Post.Property> getProperties()
          A list of properties for this post.
 String getSource()
          If available, the source link attached to this post (for example, a flash or video file).
 List<NamedFacebookType> getTo()
          A list of the profiles mentioned or targeted in this post.
 String getType()
          The type of post this is, for example "link".
 Date getUpdatedTime()
          The time of the last comment on this post.
 
Methods inherited from class com.restfb.types.NamedFacebookType
getName
 
Methods inherited from class com.restfb.types.FacebookType
equals, getId, getMetadata, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Post

public Post()
Method Detail

getFrom

public CategorizedFacebookType getFrom()
An object containing the ID and name of the user who posted the message.

Returns:
An object containing the ID and name of the user who posted the message.

getMessage

public String getMessage()
The message.

Returns:
The message.

getPicture

public String getPicture()
If available, a link to the picture included with this post.

Returns:
If available, a link to the picture included with this post.

getLink

public String getLink()
The link attached to this post.

Returns:
The link attached to this post.

getCaption

public String getCaption()
The caption of the link (appears beneath the link name).

Returns:
The caption of the link (appears beneath the link name).

getDescription

public String getDescription()
A description of the link (appears beneath the link caption).

Returns:
A description of the link (appears beneath the link caption).

getSource

public String getSource()
If available, the source link attached to this post (for example, a flash or video file).

Returns:
If available, the source link attached to this post (for example, a flash or video file).

getIcon

public String getIcon()
A link to an icon representing the type of this post.

Returns:
A link to an icon representing the type of this post.

getAttribution

public String getAttribution()
A string indicating which application was used to create this post.

Returns:
A string indicating which application was used to create this post.

getPrivacy

public Post.Privacy getPrivacy()
The privacy settings for this post.

Returns:
The privacy settings for this post.

getType

public String getType()
The type of post this is, for example "link".

Overrides:
getType in class FacebookType
Returns:
The type of post this is, for example "link".

getApplication

public NamedFacebookType getApplication()
The application used to create this post.

Returns:
The application used to create this post.

getLikesCount

public Long getLikesCount()
The number of likes on this post.

Returns:
The number of likes on this post.

getLikes

public Post.Likes getLikes()
The likes on this post.

Sometimes this can be null - check getLikesCount() instead in that case.

Returns:
The likes on this post.

getCreatedTime

public Date getCreatedTime()
The time the post was initially published.

Returns:
The time the post was initially published.

getUpdatedTime

public Date getUpdatedTime()
The time of the last comment on this post.

Returns:
The time of the last comment on this post.

getObjectId

public String getObjectId()
The Facebook object id for an uploaded photo or video.

Returns:
The Facebook object id for an uploaded photo or video.
Since:
1.6.5

getComments

public Post.Comments getComments()
The comments for this post.

Returns:
The comments for this post.

getPlace

public Post.Place getPlace()
The place where this post occurred.

Returns:
The place where this post occurred.
Since:
1.6.8

getTo

public List<NamedFacebookType> getTo()
A list of the profiles mentioned or targeted in this post.

Returns:
A list of the profiles mentioned or targeted in this post.

getActions

public List<Post.Action> getActions()
A list of available action names and links (including commenting, liking, and an optional app-specified action).

Returns:
A list of available action names and links (including commenting, liking, and an optional app-specified action).

getProperties

public List<Post.Property> getProperties()
A list of properties for this post.

This field is undocumented.

Returns:
A list of properties for this post.


RestFB 1.6.8. Copyright © 2010-2011 Mark Allen. All Rights Reserved.