Skip to content

[facebook] Photo/Set extractor only captures per-image caption, not the post's own text #9679

Description

@FMicro-soft

Description

When downloading photos from a Facebook post via the set/photo extractor (URLs like facebook.com/media/set/?set=... or facebook.com/photo/?fbid=...&set=...), the caption` metadata field only captures the per-image caption that can optionally be added to an individual photo inside a multi-photo post — it does not capture the post's own main text (the message written when the post itself was created), which is a separate piece of content on Facebook.

This means:

  • If the author wrote a per-image caption for a photo, caption is populated.
  • If the author did not write any per-image captions (common — this is an optional, secondary feature), caption is empty for every photo in that post, even though the post itself has a full text message attached.

Example (public posts, no login required to view)

Post A — has a long post message, and some (not all) photos in it have an additional per-image caption:
https://www.facebook.com/MCDucBao/posts/pfbid02hj9e4Coo1pBjGpeHoaFeAemT1wiG4VzHsuwQQXGp4FHiAXVE7mXqSeWce2UVLKoNl
caption is correctly extracted for the photos that have a per-image caption, but empty for the others in the same post — even though the post text itself exists and applies to all of them.

Post B — has a full post message, but no photo in it has a per-image caption:
https://www.facebook.com/MCDucBao/posts/pfbid034bCSxzumBpjEw4BUMq44uqx1zS3P74VnztdJv3Jopaa3MxU1EgHDLsT8qxTmKExcl
caption is empty for every photo, even though the post's own text is visible and non-empty when viewing the post directly.

Expected behavior

It would be very useful to also expose the post's own message text as a separate metadata field (e.g. post_text or similar), independent of the per-image caption, so users can save/use the actual post content regardless of whether individual photos have their own captions.

Environment

  • gallery-dl version: 1.32.8 (Windows executable, up to date via -U)
  • Extractor: facebook (set/photo)
Image Image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions