Class Comments

All Implemented Interfaces:
Serializable

public class Comments extends AbstractFacebookType
Represents the Comments Graph API type.

Please request '{id}/comments?summary=true' explicitly if you would like the summary field which contains the count (now called 'total_count')

Author:
Mark Allen
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • getData

      public List<Comment> getData()
      The comments.
      Returns:
      The comments.
    • addData

      public boolean addData(Comment comment)
    • removeData

      public boolean removeData(Comment comment)
    • getTotalCount

      public Long getTotalCount()
      The count of comments on this node.

      It is important to note that this value is changed depending on the filter modifier being used (where comment replies are available):

      • if filter is stream then total_count will be a count of all comments (including replies) on the node.
      • if filter is toplevel then total_count will be a count of all top-level comments on the node.

      total_count can be greater than or equal to the actual number of comments returned due to privacy or deletion

      Please request '{id}/comments?summary=true' explicitly if you would like the summary field which contains the count (now called 'total_count')

      Returns:
      The number of comments.
    • setTotalCount

      public void setTotalCount(Long totalCount)
      The count of comments on this node.

      It is important to note that this value is changed depending on the filter modifier being used (where comment replies are available):

      • if filter is stream then total_count will be a count of all comments (including replies) on the node.
      • if filter is toplevel then total_count will be a count of all top-level comments on the node.

      total_count can be greater than or equal to the actual number of comments returned due to privacy or deletion

      Please request '{id}/comments?summary=true' explicitly if you would like the summary field which contains the count (now called 'total_count')

    • getOrder

      public String getOrder()
      Order in which comments were returned.

      ranked indicates the most interesting comments are sorted first.
      chronological indicates comments are sorted by the oldest comments first.

      Returns:
      the order of the comments
    • setOrder

      public void setOrder(String order)
      Order in which comments were returned.

      ranked indicates the most interesting comments are sorted first.
      chronological indicates comments are sorted by the oldest comments first.

    • getCanComment

    • setCanComment

      public void setCanComment(Boolean canComment)