Documentation Center

Comment metadata

You can allow your visitors to specify, in addition to a comment they submit, any amount of additional information in the form of comment metadata, so long as each piece of metadata is in the form of a string (which can be XML, JSON or plain text). When retrieving the comments, you can then retrieve the metadata along with each comment.

Adding metadata to a comment
Both the postComment() and editComment() methods have a final parameter of type Map<String, String> that you can use to any number of property-value pairs along with comment being created or modified.
Fetching metadata along with a comment
Both the retrieveFlatComments() and retrieveThreadedComments() methods have a final parameter of type boolean that you can set to true to retrieve any metadata that was submitted along with the comments.