# Changelog of Facebook Posts & Comments Scraper - Groups/Pages (`spbotdel/facebook-group-posts-comments-scraper`) Actor

- **URL**: https://apify.com/spbotdel/facebook-group-posts-comments-scraper/changelog.md
- **Full Actor documentation**: https://apify.com/spbotdel/facebook-group-posts-comments-scraper.md

## Changelog

### 0.1.28 - 2026-11-21

- Name `onlyPostsNewerThan`, `onlyPostsOlderThan`, `minComments`, `minReactions`, and `filterAuthor` explicitly in the schema fields that describe the reduced-depth optimization for unfiltered `HISTORY_SCAN`.

### 0.1.27 - 2026-11-21

- Fix `calculatePostBudget` to return `requestedTotal: totalRequested` in the unlimited-charge branch; the previous shorthand referenced an undefined variable and would throw when `maxTotalChargeUsd` was `Infinity`.
- Apply `maxTotalResults` to every `HISTORY_SCAN`, so comment reserve is capped at `maxSearchResults` for filtered scans too.
- Keep the requested scan depth for `HISTORY_SCAN`; the charge budget now limits output through `postBudget.affordableTotal` instead of shrinking the per-surface depth and under-filling non-divisible result caps.
- Report `plannedScanPosts`, `outputPostBudget`, and `chargeBudgetLimitedOutput` in `SUMMARY.searchScan`.

### 0.1.26 - 2026-11-21

- Cap the post budget's requested total at `maxSearchResults` for unfiltered `HISTORY_SCAN`. The previous per-surface `ceil` could reserve comment budget for more posts than the global result cap, reducing affordable posts and surfaces.
- Add `effectiveRequestedTotal` and `cappedByResults` to the budget result and a regression test for non-divisible result caps with comment reservation.

### 0.1.25 - 2026-11-21

- Restrict the unfiltered `HISTORY_SCAN` depth cap to scans with no text or post-level filters. `minComments`, `minReactions`, `filterAuthor`, and post date boundaries keep the requested scan depth so deeper matches are not silently cut off.
- Report `postFiltersActive`, `unfilteredScanCapApplied`, and `chargeBudgetReducedDepth` in `SUMMARY.searchScan` so the reason for any depth reduction is explicit.
- Warn when `knownPostIds` is supplied in `HISTORY_SCAN` mode, where it is ignored.
- Correct the "newest posts" wording: an unfiltered scan returns up to `maxSearchResults` posts from the scan window, subject to `sortMode`.

### 0.1.24 - 2026-11-21

- Cap unfiltered `HISTORY_SCAN` depth to `maxSearchResults` split across the selected surfaces. Without a text filter, scanning deeper than the global result cap is wasted work and could burn proxy and comment budget.
- Report both `requestedSearchMaxPostsPerSurface` and `effectiveSearchMaxPostsPerSurface` in `SUMMARY.searchScan`, and document that `knownPostIds` is ignored in `HISTORY_SCAN`.
- Clarify schema wording and cover the effective depth cap with tests.

### 0.1.23 - 2026-11-21

- `searchMode=HISTORY_SCAN` no longer fails when `search` is empty. The Actor scans the requested public window and returns the newest posts without a text filter; `SUMMARY.searchScan.textFilterApplied` records whether a filter was used.
- Fixes the three external one-second FAILED runs on 2026-11-17 caused by `search is required when searchMode=HISTORY_SCAN`.

### 0.1.19 - 2026-11-04

- All 26 dataset fields now carry agent-facing descriptions; runtime code unchanged.
- Build `0.1.19` smoke run `F7gRcOGWZTLQdzuXM` succeeded with two posts.

### 0.1.18 - 2026-11-04

- README: added the public GitHub source badge for `spbotdel/facebook-group-posts-comments-scraper`. No runtime code changed.
- Build `0.1.18` published the README to the Apify store page; smoke run `o9n4Xav7hd5xI4ScO` succeeded with two posts.

### 0.1.17 - 2026-10-27

- Hardened the vendored group date parser with bounded relative dates, overflow protection, UTC handling for offsetless ISO timestamps, and rejection of invalid numeric boundaries.
- Guarded every Actor status-message update so diagnostics cannot abort otherwise valid collection.
- Added an early run status message before feed collection starts.
- Corrected billing documentation: the `$0.010` start event covers the 2 GB platform allocation, and the developer-paid event price includes platform usage.
- Added the group date parser to the package syntax check.

#### Verification

- Local syntax check passed; 17 of 17 tests passed.
- Apify build `0.1.17` succeeded; smoke run `3qYI8khcnRvP00Ndv` returned two posts.

### 0.1.0 - 2026-10-04

- Initial combined group/page/profile posts and comments Actor snapshot.
