Portal Community

hideComment

Hides or un-hides a comment via Graph API POST /{commentId} with an is_hidden body parameter.

FieldTypeRequiredDescription
commentIdtext✓ YesTarget Facebook comment ID.
isHiddenboolNotrue to hide, false to unhide. Defaults to true.

Example response:

{
  "commentId": "987654321_111",
  "isHidden": true
}
Body param, not the legacy query flag: the node sends is_hidden in the request body rather than the older ?method=hide query parameter, because that legacy parameter only ever hides a comment — it silently ignores isHidden=false and can't be used to unhide one. The body-param form honors both directions.

deleteComment

Permanently deletes a comment via Graph API DELETE /{commentId}.

FieldTypeRequiredDescription
commentIdtext✓ YesTarget Facebook comment ID.

Example response:

{
  "commentId": "987654321_111",
  "deleted": true
}
Not reversible: unlike hideComment, a deleted comment cannot be restored. Prefer hideComment for routine moderation and reserve deleteComment for spam/abuse cleanup.