Repository navigation
Instagram step 1: turn on Instagram for a website's Page (ADR-0028) - #211
Merged
Merged
Conversation
- Migration 0042: instagram_account_id (unique), instagram_username and instagram_enabled on messenger_connections, expand only. - saveMessenger takes `instagram`: OpenChat asks Meta for the account linked to the Page and proves the token can read its messages with one Conversations API call. Errors: instagram_not_linked, instagram_permission_missing, instagram_account_taken, instagram_needs_messenger. API minor 11. - The Messenger webhook accepts object 'instagram' for the connection's account and only logs counts by kind; nothing is stored yet. - Dashboard: the tab becomes "Messenger & Instagram" with an Instagram section, in 11 languages (machine-translated). - Guide, data model and known issues updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Patrick Ng <yatping0617@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Patrick Ng <yatping0617@gmail.com>
…real test) 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 1 of ADR-0028 (#210), stacked on it.
instagram_account_id(unique),instagram_username,instagram_enabledonmessenger_connections.PUT …/messengertakesinstagram: true|false. Turning it on asks Meta for the Page'sinstagram_business_accountand makes oneconversations?platform=instagramcall, which provesinstagram_manage_messagesand "Allow access to messages" (and is the one call Meta asks creator accounts to make before webhooks flow). The view gainsinstagram: { accountId, username, enabled } | null./api/v1/messenger/webhook/{id}acceptsobject: "instagram"for the connection's account and only logs counts by kind (instagram_webhook_message,_echo,_read, …). There are no IDs or text in the logs, and nothing is stored.pnpm verifypasses locally.Still to do before this step is done: a real-Cloudflare test with OpenChat's Page and a linked Instagram professional account, to check whether a DM from someone with no role on the app arrives without App Review.
Cloud's private
org-admin.tsreuses the same contract routes andsaveMessenger, so it gets Instagram from a submodule bump. Migration 0042 must be applied there first, since cloud deploy does not apply migrations.🤖 Generated with Claude Code