org.springframework.social.facebook.api
Class Post

java.lang.Object
  extended by org.springframework.social.facebook.api.FacebookObject
      extended by org.springframework.social.facebook.api.Post
Direct Known Subclasses:
CheckinPost, LinkPost, MusicPost, NotePost, PhotoPost, StatusPost, SwfPost, VideoPost

public class Post
extends FacebookObject

Model class representing an entry in a feed.


Nested Class Summary
static class Post.PostType
           
static class Post.Privacy
           
 
Constructor Summary
Post(String id, Reference from, Date createdTime, Date updatedTime)
           
 
Method Summary
 Reference getApplication()
           
 String getCaption()
           
 int getCommentCount()
           
 List<Comment> getComments()
          The most recent comments for the post.
 Date getCreatedTime()
           
 String getDescription()
           
 Reference getFrom()
           
 String getIcon()
           
 String getId()
           
 Integer getLikeCount()
          The number of likes for this Post.
 List<Reference> getLikes()
          Reference for users who have liked this Post.
 String getLink()
           
 String getMessage()
           
 String getName()
           
 String getPicture()
          Deprecated. This method will be replaced in Spring 1.1.0 with a new version that returns an object with more details about the picture.
 int getSharesCount()
           
 String getStory()
           
 Map<Integer,List<StoryTag>> getStoryTags()
           
 List<Reference> getTo()
           
 Post.PostType getType()
           
 Date getUpdatedTime()
           
 
Methods inherited from class org.springframework.social.facebook.api.FacebookObject
add, getExtraData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Post

public Post(String id,
            Reference from,
            Date createdTime,
            Date updatedTime)
Method Detail

getId

public String getId()

getFrom

public Reference getFrom()

getTo

public List<Reference> getTo()

getCaption

public String getCaption()

getMessage

public String getMessage()

getPicture

@Deprecated
public String getPicture()
Deprecated. This method will be replaced in Spring 1.1.0 with a new version that returns an object with more details about the picture.

The page's picture.


getLink

public String getLink()

getName

public String getName()

getDescription

public String getDescription()

getIcon

public String getIcon()

getCreatedTime

public Date getCreatedTime()

getUpdatedTime

public Date getUpdatedTime()

getApplication

public Reference getApplication()

getType

public Post.PostType getType()

getLikes

public List<Reference> getLikes()
Reference for users who have liked this Post. May not be a complete list and the size may be different than the value returned from getLikeCount(). For a complete list of likes, use LikeOperations.getLikes(String).

Returns:
a list of Reference objects for the users who have liked the Post or null if there is no like information available.

getLikeCount

public Integer getLikeCount()
The number of likes for this Post. May be different than the size of the list returned from getLikes().

Returns:
the number of likes for the Post or null if no like information is available.

getSharesCount

public int getSharesCount()

getComments

public List<Comment> getComments()
The most recent comments for the post.


getStory

public String getStory()

getStoryTags

public Map<Integer,List<StoryTag>> getStoryTags()

getCommentCount

public int getCommentCount()