|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CommentOperations
Defines operations for reading and posting comments to Facebook.
| Method Summary | |
|---|---|
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,
int offset,
int limit)
Deprecated. Use getComments(String, PagingParameters) instead |
PagedList<Comment> |
getComments(String objectId,
PagingParameters pagedListParameters)
Retrieves comments for a given object. |
PagedList<Reference> |
getLikes(String objectId)
Retrieve a list of references to users who have liked a given object. |
| Method Detail |
|---|
PagedList<Comment> getComments(String objectId)
objectId - the ID of the object
Comments for the specified object
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
@Deprecated
PagedList<Comment> getComments(String objectId,
int offset,
int limit)
getComments(String, PagingParameters) instead
objectId - the ID of the objectoffset - the offset into the list of comments to start retrieving commentslimit - the maximum number of comments to retrieve
Comments for the specified object
org.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.
Comments for the specified object
org.springframework.social.ApiException - if there is an error while communicating with Facebook.Comment getComment(String commentId)
commentId - the comment ID
Comment
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 message
org.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 ID
org.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.PagedList<Reference> getLikes(String objectId)
objectId -
References
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||