Webhooks

Comment Webhooks

Events for comments you create or delete through the API and for new comments on Facebook and Instagram posts.

Confirm your API comments, and react to new Facebook and Instagram comments. Each event carries the comment in data.object, as the comment endpoints return it. Each example is the payload's data.

Events

EventFires whenPlatforms
comment.createdYou comment or reply through the APIEvery platform with comments
comment.deletedYou delete a comment, or it is removed on FacebookEvery platform with deletes
comment.receivedAnyone comments on a connected account's postFacebook, Instagram

Listing, hiding, liking and private replies send no event. See support by platform for the actions each platform offers.

comment.created

{
  "object": {
    "id": "cmt_xek8zOrjkbzEEKS64mH0wziH8MGiU5FW9ncR4Cx7nx6MRHFFDYsbuEKNov6dlNHDl1U7E06QNOLyEkdfICPfaqaIah3ikn7jpaotvnru2kolc3aecl2LLMOiD",
    "postId": "pst_3c8a2d6e91b44f7a8e250d6b4c1f9a73",
    "accountId": "acc_YOUR_X_ACCOUNT_ID",
    "platform": "x",
    "platformCommentId": "1900891234567890123",
    "parentId": "cmt_1L9nrxdhpou1eUhHAMj8Yisi1wMzP69osZE1zdHl3N2cRhHqWmlQOyUKeoJu2SyPVvwjfvSTQRnyZoQcL2SxkRAj2dvuS0kwJEf33vKqWx14qrSsXYivNc4lfC",
    "text": "Thanks for all the feedback on this launch!",
    "username": null,
    "likeCount": 0,
    "createdAt": "2027-03-15T13:12:40.000Z",
    "replies": []
  }
}

Prop

Type

comment.deleted

{
  "object": {
    "id": "cmt_xek8zOrjkbzEEKS64mH0wziH8MGiU5FW9ncR4Cx7nx6MRHFFDYsbuEKNov6dlNHDl1U7E06QNOLyEkdfICPfaqaIah3ikn7jpaotvnru2kolc3aecl2LLMOiD",
    "postId": "pst_3c8a2d6e91b44f7a8e250d6b4c1f9a73",
    "accountId": "acc_YOUR_X_ACCOUNT_ID",
    "platform": "x",
    "platformCommentId": "1900891234567890123"
  }
}

It carries only the ids and platform, which match comment.created.

On Facebook, it also fires when the author or the Page removes a comment there. It fires only for posts Onepostly knows, such as published or synced ones. A delete through the API sends one event, not two.

comment.received

{
  "object": {
    "id": "cmt_1favcqJ4EESecYNmroaaaU1lO77s9mVKL017fGpcyOCXzsOinAYE2V5yWPBhZ68L0CYTTX9fr03ZhAwJnw97HmmAVb2FHvTHo07uXsI1FmxybkJDsoXqqTqM7L9XPoZo1VVuWZtGwe",
    "postId": "pst_3c8a2d6e91b44f7a8e250d6b4c1f9a04",
    "accountId": "acc_YOUR_FACEBOOK_ACCOUNT_ID",
    "platform": "facebook",
    "platformCommentId": "122134567890123456_998877665544332",
    "parentId": null,
    "text": "Do you ship to Canada?",
    "username": "Jane Doe",
    "likeCount": null,
    "createdAt": "2027-03-15T13:40:12.000Z",
    "replies": [],
    "authorId": "7012345678901234"
  }
}

The fields match comment.created, with these differences.

  • postId is set even for posts made outside Onepostly.
  • text is empty when the platform sends none.
  • username is the Instagram handle or Facebook name, or null.
  • createdAt is null when the platform sends no time.
  • likeCount is null. Read it with List Comments.
  • authorId is the commenter's platform user id, or null.

It fires once per comment. Reply with the event's id, or send a private reply. To answer keywords without code, use an automation.