facebook4j.api
Interface CommentMethods

All Known Subinterfaces:
Facebook
All Known Implementing Classes:
FacebookImpl

public interface CommentMethods

Author:
Ryuji Yamashita - roundrop at gmail.com

Method Summary
 boolean deleteComment(java.lang.String commentId)
          Deletes the comment.
 Comment getComment(java.lang.String commentId)
          Returns a single comment.
 ResponseList<Like> getCommentLikes(java.lang.String commentId)
          Returns the likes on a comment.
 ResponseList<Like> getCommentLikes(java.lang.String commentId, Reading reading)
          Returns the likes on a comment.
 boolean likeComment(java.lang.String commentId)
          Likes the comment.
 boolean unlikeComment(java.lang.String commentId)
          Unlikes the comment.
 

Method Detail

getComment

Comment getComment(java.lang.String commentId)
                   throws FacebookException
Returns a single comment.

Parameters:
commentId - the ID of a comment
Returns:
comment
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Comment - Facebook Developers

deleteComment

boolean deleteComment(java.lang.String commentId)
                      throws FacebookException
Deletes the comment.

Parameters:
commentId - the ID of a comment
Returns:
true if delete is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Comment - Facebook Developers

getCommentLikes

ResponseList<Like> getCommentLikes(java.lang.String commentId)
                                   throws FacebookException
Returns the likes on a comment.

Parameters:
commentId - the ID of a comment
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Comment#likes - Facebook Developers

getCommentLikes

ResponseList<Like> getCommentLikes(java.lang.String commentId,
                                   Reading reading)
                                   throws FacebookException
Returns the likes on a comment.

Parameters:
commentId - the ID of a comment
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Comment#likes - Facebook Developers

likeComment

boolean likeComment(java.lang.String commentId)
                    throws FacebookException
Likes the comment.

Parameters:
commentId - the ID of a comment
Returns:
true if like is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Comment#likes - Facebook Developers

unlikeComment

boolean unlikeComment(java.lang.String commentId)
                      throws FacebookException
Unlikes the comment.

Parameters:
commentId - the ID of a comment
Returns:
true if unlike is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Comment#likes - Facebook Developers