Repository navigation
Conversation
Extend the existing fb-comments comment automation so an Instagram Login channel can reply to matching comments with a public reply plus a private DM. Adds the me/messages private reply and me/media listing on graph.instagram.com, an Instagram post picker in the builder, a platform selector with Instagram gating (no comment likes), and the worker text-DM branch. No database migration is required as the type column already exists. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01JVD52t9bnQFDPemU5HEwAC
Collaborator
|
Hey @AlanSyue , thanks a lot for taking the time to put this together! |
2 of 5 tasks
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds Instagram (Instagram Login) support to the existing Facebook Comment Automation feature. A comment containing a configured keyword on a selected Instagram post can now trigger a public comment reply and/or a private DM to the commenter.
This was previously Messenger-only — the Instagram private DM path was left as
// out of scope MVP (no private_replies API)inexecutePrivateReply. This PR fills that gap using the Instagram Loginme/messagesendpoint (private replies addressed by comment id).Changes
integrations/instagram):sendPrivateReply— private DM viame/messageswithrecipient.comment_id.listInstagramMedia— list the connected account's own media (me/media) for post targeting.comment-automation): add the Instagram branch toexecutePrivateReply, alongside the existing Messenger branch (text private reply).fb-comments): platform selector (Facebook / Instagram) in the automation form, an Instagram post picker, and Instagram-specific gating (liking comments is not supported on Instagram).instagramPostsAPIendpoint to list Instagram posts for targeting.integrations/instagramconnect): acceptMEDIA_CREATORas a valid account type. Meta renamed the Creator account type, so Creator accounts were being rejected on connect.No database migration — the
typecolumn (messenger/instagram) already exists onFBCommentAutomation.Verification
check-types(integration-instagram, business, builder, worker),lint, and unit tests pass.me/messages(DM) andme/media(post list) APIs, webhook comment parsing, public comment reply, and the full keyword → public reply + DM flow.Out of scope (intentionally, to keep this focused)
integrations/instagram-facebook).