---
document_id: agent.collection.task.facebook_get_profile_posts_v1
schema_version: 2
parent_document_id: agent.querying
section: querying
---

<!-- Generated by scripts.build_agent_guide; do not edit. -->

# Profile posts / 主页帖子

Get bounded posts for a Facebook profile with opaque cursor pagination.

获取 Facebook 主页帖子，并使用不透明游标翻页。

Task / 任务: `facebook_get_profile_posts_v1`
Platform / 平台: Facebook / Facebook
Billing / 计费: 60 Credits per successful task / 每个成功任务 60 Credits

## Facebook directory chain / Facebook 目录链路

Chain: profile path → `profile_id` → post `post_id` → comment `comment_id` plus `expansion_token`. The post ID used by the comments and replies tasks must be decimal ASCII digits; use `comment_id`, not `legacy_comment_id`, for replies. The provider OpenAPI leaves nested `data` untyped, so the fields below are the bounded Asklear projection. The live reply probe returned an empty page; replies always publish `next_cursor: null`.
链路：主页路径 → `profile_id` → 帖子 `post_id` → 评论 `comment_id` 加 `expansion_token`。评论和回复任务使用的帖子 ID 必须是 ASCII 十进制数字；回复要使用 `comment_id`，不要使用 `legacy_comment_id`。供应商 OpenAPI 对嵌套 `data` 未定义类型，下面字段是 Asklear 的有界投影。实时回复探测返回空页；回复任务始终发布 `next_cursor: null`。
Estimate / 估价: call `estimate_collection`; start directly when `approval_required=false`, otherwise obtain approval for `upper_bound_credits`.
估价：调用 `estimate_collection`；`approval_required=false` 时直接启动，否则请用户确认 `upper_bound_credits`。

## Limitations / 限制

- One fixed marketplace data route is called per task; no automatic version fallback or cross-platform fan-out is performed.
- Returned data is bounded and projected into task-specific public fields; missing fields are not inferred.
- Each successful request is charged once by the configured Asklear task price.
- The provider OpenAPI leaves nested data untyped; this task publishes only the bounded Asklear projection documented here.
- Use the decimal ASCII post_id returned by profile posts for comments and replies; use comment_id rather than legacy_comment_id for replies.
- Comment reactions_count accepts an integer or ASCII decimal string and is normalized to a nonnegative integer.
- Reply results currently have no public cursor and always publish next_cursor as null; the live reply probe was empty.
- Production exposure requires the configured marketplace data connection and bounded live acceptance evidence.

## Inputs / 输入

- `profile_id` — Profile ID / 主页 ID; kind=text; required=True; default=''; bounds=min_length=1, max_length=256
- `cursor` — Cursor / 续页游标; kind=cursor; required=False; default=''; bounds=max_length=8192

## Minimal call / 最小调用

`estimate_collection`

```json
{
  "task_query": "Get public Facebook posts for a known profile ID.",
  "task_code": "facebook_get_profile_posts_v1",
  "input": {
    "profile_id": "profile-1"
  }
}
```


## Result and pagination / 结果与分页

- mode=cursor
- input: `cursor`; continuation: `data.next_cursor` → `data.next_cursor`

Only the fields listed below are part of the stable result contract. /
只有下方列出的字段属于稳定结果契约。

## Result fields / 结果字段

- `meta.request_id` — type=string; Asklear request identifier for tracing. / 用于追踪的 Asklear 请求 ID。
- `meta.api_name` — type=string; Executed collection operation name. / 实际执行的采集操作名称。
- `meta.latency_ms` — type=integer; Collection execution latency in milliseconds. / 采集执行耗时（毫秒）。
- `meta.credits_charged` — type=integer; Asklear user-side Credits settled for this task after completion. / 任务完成后 Asklear 用户侧实际结算的 Credits。
- `data.items` — type=array<object>; Bounded Facebook posts returned by this page. / 本页返回的有界 Facebook 帖子。
- `data.next_cursor` — type=string|null; Opaque cursor to pass to the same task for the next page. / 传回同一任务以请求下一页的不透明游标。
- `data.items[].post_id` — type=string; Facebook post identifier used by the comments task. / 可传给评论任务的 Facebook 帖子 ID。
- `data.items[].url` — type=string|null; Sanitized public post URL. / 经过清理的帖子公开 URL。
- `data.items[].message` — type=string|null; Bounded post message. / 有界的帖子正文。
- `data.items[].message_rich` — type=string|null; Bounded rich post message when supplied. / 如有则返回有界的富文本帖子正文。
- `data.items[].timestamp` — type=integer|null; Post timestamp when supplied. / 如有则返回帖子时间戳。
- `data.items[].type` — type=string|null; Projected post type. / 投影后的帖子类型。
- `data.items[].author` — type=object|null; Projected author identifier and display name. / 投影后的作者 ID 与显示名称。
- `data.items[].comments_count` — type=integer|null; Comment count when supplied. / 如有则返回评论数。
- `data.items[].reactions` — type=object|null; Projected reaction counts. / 投影后的反应计数。
- `data.items[].reshare_count` — type=integer|null; Reshare count when supplied. / 如有则返回转发数。

Use `list_collection_tasks` as the runtime authority, then `describe_collection_task` for one task's full input contract, examples and limits. Collection access is entitlement-gated. /
以 `list_collection_tasks` 返回为运行时准据，再用 `describe_collection_task` 取单个任务的完整入参契约、示例与限制；采集能力受 entitlement 控制。
