public interface CommentOperations
Modifier and Type | Method and Description |
---|---|
String |
addComment(String objectId,
String message)
Posts a comment on an object on behalf of the authenticated user.
|
void |
deleteComment(String commentId)
Deletes a comment.
|
Comment |
getComment(String commentId)
Retrieves a single comment
|
PagedList<Comment> |
getComments(String objectId)
Retrieves the first 25 comments for a given object.
|
PagedList<Comment> |
getComments(String objectId,
PagingParameters pagedListParameters)
Retrieves comments for a given object.
|
PagedList<Comment> getComments(String objectId)
objectId
- the ID of the objectComment
s for the specified objectorg.springframework.social.ApiException
- if there is an error while communicating with Facebook.PagedList<Comment> getComments(String objectId, PagingParameters pagedListParameters)
objectId
- the ID of the objectpagedListParameters
- the parameters defining the bounds of the list to return.Comment
s for the specified objectorg.springframework.social.ApiException
- if there is an error while communicating with Facebook.Comment getComment(String commentId)
commentId
- the comment IDComment
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.String addComment(String objectId, String message)
objectId
- the object IDmessage
- the comment messageorg.springframework.social.ApiException
- if there is an error while communicating with Facebook.org.springframework.social.InsufficientPermissionException
- if the user has not granted "publish_stream" permission.org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.void deleteComment(String commentId)
commentId
- the comment IDorg.springframework.social.ApiException
- if there is an error while communicating with Facebook.org.springframework.social.InsufficientPermissionException
- if the user has not granted "publish_stream" permission.org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.