SocialAPIs icon

SocialAPIs

Access public data from major social platforms

Facebook Post → Get Post Attachments

AI-generated

Summary

Retrieve the media attachments for a specified Facebook post

Inputs

  • postId (required) — The Facebook Post ID whose attachments to retrieve
  • requestOptions — Additional request options such as batching settings, proxy, timeout, and SSL verification
  • allowUnauthorizedCerts — Whether to ignore SSL certificate validation errors
  • proxy — HTTP proxy URL to use for the request
  • timeout — Request timeout in milliseconds

Output shape

an array of attachment objects

Each attachment includes details like type, url, and other metadata; results may be paginated and optional fields may be omitted

Examples

Example 1: Fetch attachments for a post using its ID

postId: '123456789', requestOptions: { batch: { batchSize: 50 } }

Example 2: Retrieve attachments with default settings

postId: '987654321'

Links

Discussion