Search Facebook Posts
search_facebook_postsSearch public Facebook posts by keyword. Returns post text, author details, engagement metrics and media. Limit to a date range, sort by newest or relevance, or scope to a place with a location_id from search_facebook_locations. Billed $0.008 per page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | Number of pages to fetch (1-15, default 1). Billed per page. | |
| query | Yes | Search keyword (max 500 characters) | |
| sort_by | No | Sort order: most_recent or relevance (default: relevance) | relevance |
| end_date | No | Only posts up to this date (YYYY-MM-DD) | |
| start_date | No | Only posts from this date onward (YYYY-MM-DD) | |
| location_id | No | Facebook location ID (from search_facebook_locations) to scope results to a place | |
| get_sentiment | No | Add AI sentiment analysis (Plutchik emotions, dominant_emotion, intensity, and positive/negative/neutral polarity) to each result. Adds a small surcharge per page, or per request on single-request endpoints. |