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

public class Post
extends NamedFacebookType

Represents the Post Graph API type.

Since:
1.5
Author:
Mark Allen

Nested Class Summary
static class Post.Action
          Represents the Action Graph API type.
static class Post.Comments
          Represents a collection of Comments.
static class Post.Privacy
          Represents the Privacy Graph API 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).
 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.
 Long getLikes()
          The number of likes on this post.
 String getLink()
          The link attached to this post.
 String getMessage()
          The message.
 String getPicture()
          If available, a link to the picture included with this post.
 Post.Privacy getPrivacy()
          The privacy settings 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.
 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, getType, 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.

getLikes

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

Returns:
The number of 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.

getComments

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

Returns:
The comments for this post.

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).


RestFB version 1.5.3. Copyright © 2010 Mark Allen. All Rights Reserved.