facebook4j.api
Interface CommentMethods

All Known Subinterfaces:
Facebook

public interface CommentMethods

Author:
Ryuji Yamashita - roundrop at gmail.com

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

Method Detail

getComment

Comment getComment(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

getComment

Comment getComment(String commentId,
                   Reading reading)
                   throws FacebookException
Returns a single comment.

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

getCommentReplies

ResponseList<Comment> getCommentReplies(String commentId)
                                        throws FacebookException
Returns the replies on a comment.

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

getCommentReplies

ResponseList<Comment> getCommentReplies(String commentId,
                                        Reading reading)
                                        throws FacebookException
Returns the replies on a comment.

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

deleteComment

boolean deleteComment(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(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(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(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(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


Copyright © 2019. All rights reserved.