DanielLeens opened a new pull request, #13716: URL: https://github.com/apache/seatunnel/pull/13716
Yes, this contributes to Apache SeaTunnel. Related to #10753. ### Resulting behavior Adds a bounded FacebookPages source for eight native families: Page, feed posts, post/Page/video/Reels insights, comments and recommendations/reviews. It uses fixed graph.facebook.com GET requests, explicit Graph version v26.0 by default, configurable native fields/metrics and Bearer-header authentication. Page tokens are used directly; User tokens are lazily exchanged once per reader for the configured Page token. Returned credential parameters and URLs are never reused as authenticated request targets. Independent bounded feed/video/reel ID discoveries supply the direct native insight/comment endpoints. This avoids truncating insight pages inside field expansion. Duplicate records remain data while duplicate parent IDs expand once; comments use filter=stream for visible replies, and ratings receive no invented key. Selected-resource permissions fail explicitly rather than being skipped. Conservative Page/post field defaults are configurable; complete returned records, precise numbers, nulls, unknown fields and original timestamps/metric values are preserved. Native list/cursor next links remain authoritative even for empty/short pages. Safe navigation is reconstructed within the fixed origin/version/path/query scope, with cycle and finite-budget checks. Feed time navigation is supported. Insights time-style links navigate adjacent date windows: explicit Page Insights backfills instead advance their own at-most-90-day windows, while default/lifetime reads retain the native requested window. Cursor-based Insights pages are still traversed. An omitted explicit-range upper freezes once and survives restoration. Posts remain full feed by default; post_start_date explicitly enables native creation-time filtering without shrinking hidden discovery. Publication and progress share the checkpoint lock. Complete-response fingerprints and copied parent/navigation/frozen-window state protect exact partial suffix replay, accepting object-key reordering while rejecting changed prefix/suffix/order/length. Discovery commits at page completion; completed transitions do not replay, and terminal restoration makes no request. Graph transient/throttle codes and business regain-access estimates are handled within retry/deadline budgets; permanent credentials/permissions/metrics fail without provider-body logging. Includes isolated production/E2E modules, approved additive module/install/dist registration, Factory SPI and bilingual guides/changelogs. Existing HTTP/Jackson versions are reused without a new SDK, root version change or shared framework modification. Native references: [Graph pagination](https://developers.facebook.com/docs/graph-api/results/), [Insights](https://developers.facebook.com/docs/graph-api/reference/insights/) and [rate limits](https://developers.facebook.com/docs/graph-api/overview/rate-limiting/). ### Validation - Scoped Java 11 Spotless apply/check passed for both modules. - Source/static checks covered 26 paths, 13 Java files, 22 documented types, all 27 option tables, XML/ASF/whitespace, registration/state contracts and exact hashes. No Python or preexisting capability deletions are included. - Authored 14 real Zeta E2E methods plus one packaged-reader entry with ten modes. Independent Java TLS fixtures cover all eight families, hidden/duplicate/empty discovery, reply context, independent insight pages, empty/short next pages, terminal cursors, feed time navigation, adjacent Insights windows, 90-day slicing, explicit post scope, lazy token exchange, unsafe URLs/cycles, complete bad pages, finite budgets, Graph transient/permanent errors, maximum minute-based business advice, retries, bytes/gzip/UTF-8/JSON/media/TLS/deadline/cancellation. Five engine savepoint paths cover exchanged-token in-flight work, committed discovery, cursors, time-window switching and terminal state. Packaged modes cover partial post/comment/insight replay, changed full responses, key reordering, frozen upper bounds, copy isolation, scope/state rejection and zero-work readers. - Compilation and runtime/E2E results remain pending GitHub CI. No local compilation, tests, containers, fixture services or real account were run. Account app review/tasks/scopes, actual token interoperability, metric availability, retention, native pagination variants, DNS and mutable live collections remain external validation constraints. App-secret proofs and OAuth login/refresh flows are not generated. This bounded export does not implement a persistent cross-job watermark, automatic incremental lookback or a remote/sink transaction snapshot. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
