Class IgComment

    • Method Detail

      • setHidden

        public void setHidden​(Boolean hidden)
        Whether the comment is hidden
      • getFrom

        public IgFrom getFrom()
        An object containing: id — IGSID of the Instagram user who created the IG Comment. username — Username of the Instagram user who created the IG Comment.
      • setFrom

        public void setFrom​(IgFrom from)
        An object containing: id — IGSID of the Instagram user who created the IG Comment. username — Username of the Instagram user who created the IG Comment.
      • setLikeCount

        public void setLikeCount​(Long likeCount)
        Number of likes on the comment
      • setMedia

        public void setMedia​(IgMedia media)
        Media on which the comment is made
      • setText

        public void setText​(String text)
        Text of the comment
      • setTimestamp

        public void setTimestamp​(Date timestamp)
        Timestamp of comment
      • getUser

        @Deprecated
        public IgUser getUser()
        Deprecated.
        with Graph API 12 or December 13, 2021 for all versions
        User who made the comment
      • setUser

        @Deprecated
        public void setUser​(IgUser user)
        Deprecated.
        with Graph API 12 or December 13, 2021 for all versions
        User who made the comment
      • getUsername

        public String getUsername()
        User will only be returned when queried by owner of comment. Otherwise, username is the only field that will be returned.
      • setUsername

        public void setUsername​(String username)
        User will only be returned when queried by owner of comment. Otherwise, username is the only field that will be returned.
      • getParentId

        public String getParentId()
        ID of the parent IG Comment if this comment was created on another IG Comment (i.e. a reply to another comment.
      • setParentId

        public void setParentId​(String parentId)
        ID of the parent IG Comment if this comment was created on another IG Comment (i.e. a reply to another comment.