Repository navigation
Instagram step 2: customers' direct messages reach the inbox (ADR-0028) - #212
Merged
Merged
Conversation
- The Messenger webhook stores Instagram messages for the connection's
account while Instagram is on, through the same identities,
conversations, media and profile jobs, with channel_kind 'instagram'.
- Migration 0043: messenger_identities.channel ('messenger' default,
'instagram'), so export and the profile job tell them apart.
- Story replies and mentions, shares, view-once media, unsent and
unsupported messages become lines saying what they were, with Meta's
link where there is one. Instagram's CDN is allowed for files. Names
come from Meta's name, else @username.
- Until step 3, replies are refused with 409
instagram_replies_unavailable and the assistant does not answer.
- API minor 12: 'instagram' channel, `instagram` in contact export.
- Dashboard: Instagram mark, notes for its kinds, notes-only composer,
11 languages (machine-translated). Docs updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Patrick Ng <yatping0617@gmail.com>
Found on real Cloudflare: Instagram's CDN (lookaside.fbsbx.com ig_messaging_cdn) redirects a request with no User-Agent, which is what a Worker's fetch sends, to facebook.com/unsupportedbrowser, so the photo failed. Any User-Agent gets the file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Patrick Ng <yatping0617@gmail.com>
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.
Step 2 of ADR-0028, stacked on #211.
channel_kind = 'instagram'.messenger_identities.channel(default'messenger', expand only). Export and the profile job use it to tell the two apart. This deviates slightly from the ADR's "tables unchanged"; it will be noted in the ADR.unsent:<mid>), so it isn't taken for a repeat. Files are also accepted fromcdninstagram.com. Contacts are named from Meta'sname, else@username.instagram_replies_unavailable, notes still work, and the assistant doesn't answer.instagramas a channel, andinstagramidentities in contact export.pnpm verifypasses. A real-Cloudflare test on preview-ig is next.Cloud needs its own migration (0009, allowance triggers for
channel_kind = 'instagram') before it takes this.🤖 Generated with Claude Code