|
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 |
java.util.List<Comment> |
getComments(java.lang.String objectId)
Retrieves the first 25 comments for a given object. |
java.util.List<Comment> |
getComments(java.lang.String objectId,
int offset,
int limit)
Retrieves comments for a given object. |
java.util.List<Reference> |
getLikes(java.lang.String objectId)
Retrieve a list of references to users who have liked a given object. |
Method Detail |
---|
java.util.List<Comment> getComments(java.lang.String objectId)
objectId
- the ID of the object
Comment
s for the specified object
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.java.util.List<Comment> getComments(java.lang.String objectId, int offset, int limit)
objectId
- the ID of the objectoffset
- the offset into the list of comments to start retrieving commentslimit
- the maximum number of comments to retrieve
Comment
s 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.java.util.List<Reference> getLikes(java.lang.String objectId)
objectId
-
Reference
s
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 |