Skip to content

to main#802

Merged
JoshuaVSherman merged 3 commits into
mainfrom
dev
Jun 11, 2026
Merged

to main#802
JoshuaVSherman merged 3 commits into
mainfrom
dev

Conversation

@JoshuaVSherman

Copy link
Copy Markdown
Contributor

No description provided.

JoshuaVSherman and others added 3 commits June 11, 2026 04:56
Upgrade the single-page Facebook feed service (#797) to serve multiple
pages from one Meta app, so CollegeLutheran and WebJamLLC feeds coexist.

- Token doc keyed by pageId (one doc per page) instead of the pageToken
  singleton; startup migration relabels the legacy doc to the CLC pageId
  and drops the stale key_1 unique index, so CLC survives the deploy with
  no manual reconnect.
- In-memory feed cache and dead-token alert flag keyed per pageId.
- GET /facebook/feed?pageId= returns that page's posts; omitting pageId
  defaults to the CLC page for back-compat.
- PUT /facebook/token carries pageId; the hourly refresh iterates every
  page in FB_PAGES; the dead-token alert email names the page that died.
- Config: FB_PAGES JSON pageId->name map (falls back to FB_PAGE_ID during
  rollout); JaM-admin added to AUTH_ROLES.facebook so the JaM admin can
  reconnect WebJamLLC.
- Tests: add second-page, named-email, and migration cases; recreate the
  admin user per-test and scope cleanup to fix a cross-spec DB flake.

Closes #799

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add a "which Facebook var lives where" table (app id/secret, FB_PAGES,
roles, page tokens), a warning that the FB consent dialog's page
selection is a replace (keep both pages checked, else the deselected
page's token is revoked), and how to find/verify a page id via
/me/accounts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
feat(facebook): serve multiple pages (CollegeLutheran + WebJamLLC)
@JoshuaVSherman JoshuaVSherman merged commit 1d11180 into main Jun 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant