Portal Community
Own media only: You can only post comments on media objects owned by your Instagram Business account. This operation cannot post comments on other users' media.

When to Use

Configuration

Connection

FieldRequiredDescription
accessTokenRequiredLong-lived Instagram access token stored in BizFirst Credentials Manager.
igUserIdRequiredYour Instagram Business/Creator account ID.

Operation

FieldRequiredDescription
resourceRequiredMust be comments.
operationRequiredMust be create.
mediaIdRequiredID of the Instagram media object on which to post the comment.
messageRequiredComment text. Supports @mentions and emoji. Instagram may reject comments that violate community guidelines.

Sample Configuration JSON

{
  "resource": "comments",
  "operation": "create",
  "accessToken": "{{ $credential.instagram.accessToken }}",
  "igUserId": "17841400000000000",
  "mediaId": "{{ $output.publishNode.instagram.mediaId }}",
  "message": "Shop the full collection at the link in bio! #newcollection #fashion"
}

Validation Errors

ErrorCause
accessToken is requiredaccessToken field is missing or empty.
mediaId is requiredmediaId field is missing or empty.
message is requiredmessage field is missing or empty.
Graph API error 368Comment text violates Instagram community guidelines.
Graph API error 100Media ID does not exist or is not owned by this account.

Output

Success Port

FieldTypeDescription
statusstring"success"
commentIdstringID of the newly created comment. Use for subsequent moderation operations.
payloadstringRaw JSON response from the Graph API.

Error Port

FieldTypeDescription
statusstring"error"
errorCodestringGraph API error code.
errorMessagestringError description.
payloadstringRaw error response.

Sample Output JSON

{
  "status": "success",
  "commentId": "17858893270000001",
  "payload": "{\"id\":\"17858893270000001\"}"
}

Expression Reference

ExpressionValue
{{ $output.instagram.commentId }}New comment ID for subsequent operations

Node Policies & GuardRails

Examples

First comment after publish — CTA with hashtags

{
  "resource": "comments",
  "operation": "create",
  "accessToken": "{{ $credential.instagram.accessToken }}",
  "igUserId": "17841400000000000",
  "mediaId": "{{ $output.mediaPublish.instagram.mediaId }}",
  "message": "Shop now at the link in bio! Use code SUMMER20 for 20% off. #sale #limitedtime"
}

Runs immediately after media/publish in the same workflow. Posts the promotional first comment with coupon code and hashtags while keeping the caption clean.

AI-generated announcement comment

{
  "resource": "comments",
  "operation": "create",
  "accessToken": "{{ $credential.instagram.accessToken }}",
  "igUserId": "{{ $env.IG_USER_ID }}",
  "mediaId": "{{ $input.giveawayPostId }}",
  "message": "Congratulations to @{{ $output.winnerSelection.username }} — you've won! Please DM us to claim your prize."
}

Posts the winner announcement comment on the original giveaway post. The username is dynamically populated from the winner selection node's output.