to main#802
Merged
Merged
Conversation
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)
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.
No description provided.