org.springframework.social.facebook.api
Interface CommentOperations


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)
          Delete a comment
 Comment getComment(java.lang.String commentId)
          Retrieves a single comment
 java.util.List<Comment> getComments(java.lang.String objectId)
          Retrieves all 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

getComments

java.util.List<Comment> getComments(java.lang.String objectId)
Retrieves all comments for a given object.

Parameters:
objectId - the objectId
Returns:
a list of Comments for the specified object

getComment

Comment getComment(java.lang.String commentId)
Retrieves a single comment

Parameters:
commentId - the comment ID
Returns:
the requested Comment

addComment

java.lang.String addComment(java.lang.String objectId,
                            java.lang.String message)
Posts a comment on an object on behalf of the authenticated user.

Parameters:
objectId - the object ID
message - the comment message
Returns:
the new comment's ID

deleteComment

void deleteComment(java.lang.String commentId)
Delete a comment

Parameters:
commentId - the comment ID

getLikes

java.util.List<Reference> getLikes(java.lang.String objectId)
Retrieve a list of references to users who have liked a given object.

Parameters:
objectId -
Returns:
a list of References