Download Facebook thumbnails from the CDN#11
Merged
Conversation
- Add System page with the real touring-grade sound spec, FX sync explanation, lighting rig, structural details and ADIPS callout. - Add Build Journey page tracing the build from trailer-wrapped factory shots through custom fabrication, ADIPS pass, first runs and the Threshold Active takeover. - Add Updates page backed by a curated facebook-posts/ directory of JSON social-card entries (consumed by the blocks system's socials block). - Sharpen the home page: stats strip (arms/axes/subs/smoke machines), features rewritten with concrete specs, split-image teasers pointing at the System and Build pages, recent-drops socials strip. - Contact page: replace plain markdown link list with icon-links block. - Add scripts/process-facebook-posts.js to regenerate the socials JSON from the raw archive (date interpolation from video publish_time anchors; manual thumbnail pairing with existing ride photos since the FB CDN URLs expire). https://claude.ai/code/session_01Us19jzizCanX7utk5LovZm
Replaces the hand-picked mapping of ride photos with actual post thumbnails pulled from the FB CDN. Retries with backoff on 503/429, skips already- downloaded files, and stores images under images/facebook/ keyed by slug.
Video posts expose a small p526x296 variant at image.uri and a much larger s960x960 variant at thumbnail / preferred_thumbnail.image.uri. Reorder pickMediaUrl so video covers come through at 960px instead of 526px.
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.
Summary
scripts/process-facebook-posts.jswith actual post thumbnails fetched from the FB CDN.images/facebook/<slug>.jpg.Test plan
bun scripts/process-facebook-posts.jscompletes and writes all 14 JSON recordsimages/facebook/contains 14 valid JPGsbun run buildstill succeeds and the Facebook archive renders with the new thumbnailsGenerated by Claude Code