Skip to content

fix(messenger): list every page and back up channel authorizations - #1746

Merged
viethung0o0 merged 2 commits into
mainfrom
fix/connect-page-listing-auth-capture
Nov 18, 2026
Merged

viethung0o0 merged 2 commits into
mainfrom
fix/connect-page-listing-auth-capture

Conversation

@viethung0o0

Copy link
Copy Markdown
Contributor

Summary

  • Facebook Pages without a tasks field can now be connected.
  • Pages the user can't connect (missing admin access or no page token) stay in the picker, disabled with a reason, instead of disappearing.
  • "No Facebook Pages found" now only shows when Facebook returns no Pages at all.
  • Each user's latest channel authorization is kept as an encrypted backup on User, so it is still there when a connect fails before a channel is created.
  • The backup never reaches API responses, sessions, caches or logs, is cleared on account deletion and is covered by key rotation.
  • The migration must run before the builder is deployed.

Test plan

  • Lint, type checks and invariant checks
  • Full suites for builder, business, worker, connections, database (including DB-backed tests) and the Messenger and WhatsApp integrations
  • Checked the Page picker in the browser: mixed, all disabled and empty lists, narrow width, another locale, loading and error states
  • Confirmed the backup column does not appear in pages or the session response
  • Connect a Facebook account whose Pages have no tasks field

@github-actions github-actions Bot added the bug Something isn't working as expected label Nov 18, 2026
@viethung0o0
viethung0o0 marked this pull request as ready for review November 18, 2026 06:52
@viethung0o0
viethung0o0 merged commit c652496 into main Nov 18, 2026
14 checks passed
hello-jackytruong referenced this pull request in hello-jackytruong/ChatWorkAI Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants