yt-dlp Command Generator for Facebook
Build a yt-dlp command for Facebook videos, including the cookie options most of them need.
Notes for Facebook
Much of Facebook is unavailable to logged-out requests, and higher-quality renditions are frequently offered only to a signed-in session. Supplying cookies fixes both at once.
If the result looks lower quality than what you saw in the browser, list the formats first — the ladder available to your session is often shorter than the one the web player uses.
Facebook URLs come in more shapes than any other platform yt-dlp handles: /watch/?v=…, /reel/…, group posts, page videos and fb.watch short links. They all land in the same extractor, but the page-wrapped ones sometimes need the video unrolled first. The permalink is the reliable form — right-click the post's timestamp and copy that address; it points straight at the media page rather than at a feed that happens to contain it.
The same video can exist on a page, in a group and on a profile as three separate entries, and the quality ladder differs between them: page uploads usually carry the highest rendition, re-shares the lowest. Group videos need cookies from an account that is a member of that group — a session that cannot see the post cannot download it, and no option changes that. Marketplace listings are a different system yt-dlp does not support at all.
Live replays behave like ordinary videos once the broadcast ends, so download them with the normal options — with one caveat: a replay is not a live stream, so record-from-the-start does not apply, and the beginning of the file is whatever Facebook kept. If a replay starts mid-event, the earlier part was never retained as video, and no setting reaches media the platform never stored.
Two things genuinely do not work, and it is cheaper to say so than to let anyone spend an evening on them: Marketplace listings, and stories that have already expired. Everything else that fails usually fails on access rather than format — which is why cookies are the first thing to check and -F the second. If formats appear but every rung is low, that is the ladder your session is being offered; a different account sometimes sees more, but no flag invents a higher rendition than the platform serves.