Skip to main content
metaAds.onPageCommentCreated starts when someone comments on, or replies to a comment on, a selected Facebook Page’s organic posts and ad posts.
automations/meta-ads-on-page-comment-created.automation.ts
Pass the Page ID from List Pages. Meta sends comments on ad posts through the Page that runs the ad. The Page’s own comments, comment edits, deletions, and reactions don’t start the trigger. Optional account selects a static project account binding. The event includes:
  • commentId, postId, and pageId
  • parentId, present only when the comment replies to another comment
  • from, with the comment author’s id and name when Meta includes them
  • message, plus photo or video when the comment has media
  • createdTime in Unix seconds
  • post, with post context such as statusType, permalinkUrl, and promotionStatus when Meta includes it
Meta retries deliveries; each commentId starts at most one run. The trigger needs pages_manage_metadata, pages_read_user_content, and pages_show_list. Until the app has Advanced Access, Meta only delivers activity from people with a role on the Meta app.