Skip to content

Restore anonymous Facebook videos and TikTok mobile/embed extraction - #1

Merged
mrjacock merged 5 commits into
mainfrom
fix/facebook-tiktok-public
Oct 31, 2026
Merged

mrjacock merged 5 commits into
mainfrom
fix/facebook-tiktok-public

Conversation

@mrjacock

@mrjacock mrjacock commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Restore public Facebook videos and TikTok mobile/app share links without requiring a personal account. Facebook now tries a bounded anonymous yt-dlp path; TikTok reads the current mobile/embed schemas and preserves only the site's correctly scoped temporary anonymous cookies. Download HEAD/GET headers are consistent, and rejected range transfers can fall back once to a bounded ordinary GET without retaining partial data.

Validation completed on head 8dc1c3a: complete Go suite and targeted race checks passed in Actions run 41242029556. Live matrix: 13 successful download cases (six distinct Facebook videos, two distinct TikTok videos, an Instagram Reel and a three-photo album), plus a correct oversized-file rejection. Covered actual mobile app shares, m.facebook.com Reel/watch variants, video.php, short TikTok redirects/empty handles and embed URLs. Temporary files were checked after each successful case.

Two additional Facebook URLs remain unavailable to anonymous retrieval; these are documented limitations, not counted as downloaded videos. One is unavailable in the user's browser as well. Real Telegram delivery succeeded for a 64-second TikTok and a 27-second Facebook app share sent together in one message. Live deployment preserves access/resource limits and other services; no personal account/session was imported.

No private configuration, host firewall rules, prebuilt registry publication or upstream contribution is included. This PR targets the user's own repository.

Preserve bounded downloads, platform URL checks and task identity. Add regression tests and an isolated CI build; no deployment or private configuration.
Handle heterogeneous unrelated hydration data without failing the video parser. Add regressions for mixed scalar/object data and privacy flags. Apply source formatting from the successful CI build.
Use the site's temporary cookie scopes without importing browser sessions. Check HEAD status, propagate download headers, and retry rejected range transfers once as bounded ordinary GETs without retaining partial prefixes. Cover separate Facebook post/video IDs and download regressions.
@mrjacock
mrjacock marked this pull request as ready for review October 31, 2026 21:21
@mrjacock
mrjacock merged commit d8ca865 into main Oct 31, 2026
1 check 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