|
Spring Social Facebook | ||||||||
| 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 | |
|---|---|
java.lang.String |
addComment(java.lang.String objectId,
java.lang.String message)
Posts a comment on an object on behalf of the authenticated user. |
void |
deleteComment(java.lang.String commentId)
Deletes a comment. |
Comment |
getComment(java.lang.String commentId)
Retrieves a single comment |
PagedList<Comment> |
getComments(java.lang.String objectId)
Retrieves the first 25 comments for a given object. |
PagedList<Comment> |
getComments(java.lang.String objectId,
int offset,
int limit)
Deprecated. Use getComments(String, PagingParameters) instead |
PagedList<Comment> |
getComments(java.lang.String objectId,
PagingParameters pagedListParameters)
Retrieves comments for a given object. |
PagedList<Reference> |
getLikes(java.lang.String objectId)
Retrieve a list of references to users who have liked a given object. |
| Method Detail |
|---|
PagedList<Comment> getComments(java.lang.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(java.lang.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(java.lang.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(java.lang.String commentId)
commentId - the comment ID
Comment
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
java.lang.String addComment(java.lang.String objectId,
java.lang.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(java.lang.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(java.lang.String objectId)
objectId -
References
org.springframework.social.ApiException - if there is an error while communicating with Facebook.
|
Spring Social Facebook | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||