public interface PostMethods
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
commentPost(java.lang.String postId,
CommentUpdate commentUpdate)
Comments on the post.
|
java.lang.String |
commentPost(java.lang.String postId,
java.lang.String message)
Comments on the post.
|
boolean |
deletePost(java.lang.String postId)
Deletes the post.
|
ResponseList<Post> |
getFeed()
Returns the current user's/page's/event's wall.
|
ResponseList<Post> |
getFeed(Reading reading)
Returns the current user's/page's/event's wall.
|
ResponseList<Post> |
getFeed(java.lang.String id)
Returns a user's/page's/event's wall.
|
ResponseList<Post> |
getFeed(java.lang.String id,
Reading reading)
Returns a user's/page's/event's wall.
|
ResponseList<Post> |
getHome()
Returns the current user's news feed.
|
ResponseList<Post> |
getHome(Reading reading)
Returns the current user's news feed.
|
Post |
getPost(java.lang.String postId)
Returns a single post.
|
Post |
getPost(java.lang.String postId,
Reading reading)
Returns a single post.
|
ResponseList<Comment> |
getPostComments(java.lang.String postId)
Returns all of the comments on a post.
|
ResponseList<Comment> |
getPostComments(java.lang.String postId,
Reading reading)
Returns all of the comments on a post.
|
ResponseList<Like> |
getPostLikes(java.lang.String postId)
Returns the likes on a post.
|
ResponseList<Like> |
getPostLikes(java.lang.String postId,
Reading reading)
Returns the likes on a post.
|
ResponseList<Post> |
getPosts()
Returns the current user's/page's own posts.
|
ResponseList<Post> |
getPosts(Reading reading)
Returns the current user's/page's own posts.
|
ResponseList<Post> |
getPosts(java.lang.String id)
Returns the user's/page's own posts.
|
ResponseList<Post> |
getPosts(java.lang.String id,
Reading reading)
Returns the user's/page's own posts.
|
ResponseList<Post> |
getStatuses()
Returns the current user's status updates.
|
ResponseList<Post> |
getStatuses(Reading reading)
Returns the current user's status updates.
|
ResponseList<Post> |
getStatuses(java.lang.String id)
Returns the user's/page's status updates.
|
ResponseList<Post> |
getStatuses(java.lang.String id,
Reading reading)
Returns the user's/page's status updates.
|
ResponseList<Post> |
getTagged()
Returns the posts the current user is tagged in.
|
ResponseList<Post> |
getTagged(Reading reading)
Returns the posts the current user is tagged in.
|
ResponseList<Post> |
getTagged(java.lang.String userId)
Returns the posts a user is tagged in.
|
ResponseList<Post> |
getTagged(java.lang.String userId,
Reading reading)
Returns the posts the user is tagged in.
|
boolean |
likePost(java.lang.String postId)
Likes the post.
|
java.lang.String |
postFeed(PostUpdate postUpdate)
Creates the post.
|
java.lang.String |
postFeed(java.lang.String id,
PostUpdate postUpdate)
Creates the post.
|
java.lang.String |
postLink(java.lang.String userId,
java.net.URL link)
Creates the link.
|
java.lang.String |
postLink(java.lang.String userId,
java.net.URL link,
java.lang.String message)
Creates the link.
|
java.lang.String |
postLink(java.net.URL link)
Creates the link.
|
java.lang.String |
postLink(java.net.URL link,
java.lang.String message)
Creates the link.
|
java.lang.String |
postStatusMessage(java.lang.String message)
Creates the status message.
|
java.lang.String |
postStatusMessage(java.lang.String id,
java.lang.String message)
Creates the status message.
|
boolean |
unlikePost(java.lang.String postId)
Unlikes the post.
|
ResponseList<Post> getFeed() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Post> getFeed(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Post> getFeed(java.lang.String id) throws FacebookException
id - the ID of a user/page/eventFacebookException - when Facebook service or network is unavailableResponseList<Post> getFeed(java.lang.String id, Reading reading) throws FacebookException
id - the ID of a user/page/eventreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Post> getHome() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Post> getHome(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Post> getPosts() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Post> getPosts(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Post> getPosts(java.lang.String id) throws FacebookException
id - the ID of a user/pageFacebookException - when Facebook service or network is unavailableResponseList<Post> getPosts(java.lang.String id, Reading reading) throws FacebookException
id - the ID of a user/pagereading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Post> getStatuses() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Post> getStatuses(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Post> getStatuses(java.lang.String id) throws FacebookException
id - the ID of a user/pageFacebookException - when Facebook service or network is unavailableResponseList<Post> getStatuses(java.lang.String id, Reading reading) throws FacebookException
id - the ID of a user/pagereading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Post> getTagged() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Post> getTagged(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Post> getTagged(java.lang.String userId) throws FacebookException
userId - the ID of a userFacebookException - when Facebook service or network is unavailableResponseList<Post> getTagged(java.lang.String userId, Reading reading) throws FacebookException
userId - the ID of a userreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablePost getPost(java.lang.String postId) throws FacebookException
postId - the ID of the postFacebookException - when Facebook service or network is unavailablePost getPost(java.lang.String postId, Reading reading) throws FacebookException
postId - the ID of the postreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Comment> getPostComments(java.lang.String postId) throws FacebookException
postId - the ID of a postFacebookException - when Facebook service or network is unavailableResponseList<Comment> getPostComments(java.lang.String postId, Reading reading) throws FacebookException
postId - the ID of a postreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablejava.lang.String commentPost(java.lang.String postId,
java.lang.String message)
throws FacebookException
postId - the ID of the postmessage - comment textFacebookException - when Facebook service or network is unavailablejava.lang.String commentPost(java.lang.String postId,
CommentUpdate commentUpdate)
throws FacebookException
postId - the ID of the postcommentUpdate - comment contentFacebookException - when Facebook service or network is unavailableResponseList<Like> getPostLikes(java.lang.String postId) throws FacebookException
postId - the ID of a postFacebookException - when Facebook service or network is unavailableResponseList<Like> getPostLikes(java.lang.String postId, Reading reading) throws FacebookException
postId - the ID of a postreading - optional reading parameters. see Graph API#reading - Facebook Developers see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableboolean likePost(java.lang.String postId)
throws FacebookException
postId - the ID of the postFacebookException - when Facebook service or network is unavailableboolean unlikePost(java.lang.String postId)
throws FacebookException
postId - the ID of the postFacebookException - when Facebook service or network is unavailablejava.lang.String postFeed(PostUpdate postUpdate) throws FacebookException
postUpdate - the post to be createdFacebookException - when Facebook service or network is unavailablejava.lang.String postFeed(java.lang.String id,
PostUpdate postUpdate)
throws FacebookException
id - the ID of a user/page/eventpostUpdate - the post to be createdFacebookException - when Facebook service or network is unavailablejava.lang.String postLink(java.net.URL link)
throws FacebookException
link - link URLFacebookException - when Facebook service or network is unavailablejava.lang.String postLink(java.net.URL link,
java.lang.String message)
throws FacebookException
link - link URLmessage - link messageFacebookException - when Facebook service or network is unavailablejava.lang.String postLink(java.lang.String userId,
java.net.URL link)
throws FacebookException
userId - the ID of a userlink - link URLFacebookException - when Facebook service or network is unavailablejava.lang.String postLink(java.lang.String userId,
java.net.URL link,
java.lang.String message)
throws FacebookException
userId - the ID of a userlink - link URLmessage - link messageFacebookException - when Facebook service or network is unavailablejava.lang.String postStatusMessage(java.lang.String message)
throws FacebookException
message - link messageFacebookException - when Facebook service or network is unavailablejava.lang.String postStatusMessage(java.lang.String id,
java.lang.String message)
throws FacebookException
id - the ID of a user/pagemessage - link messageFacebookException - when Facebook service or network is unavailableboolean deletePost(java.lang.String postId)
throws FacebookException
postId - the ID of the postFacebookException - when Facebook service or network is unavailable