> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fetchhive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Facebook 群组帖子

> 配置一个工作流步骤，读取公开 Facebook 群组的近期帖子

# Facebook 群组帖子

当你想了解某个社群在讨论什么时，使用 **Facebook Group Posts**。该步骤读取公开 Facebook 群组的近期帖子，并返回每篇帖子的作者、反应数、评论数和群组信息。

## 配置

| 选项 | 必填 | 说明 |
| - | - | - |
| Name | 否 | 工作流画布上的步骤标签。 |
| URL | 是 | Facebook 群组 URL，例如 `https://www.facebook.com/groups/123456789`。 此字段支持通过 **Insert Variable** 使用工作流变量。 |
| When the step fails | 否 | 控制此步骤失败时工作流应 **Terminate Workflow** 还是 **Continue**。 |

从 **Search steps...** 的 **Content & Social** 分组中添加此步骤。

## 输出

点击步骤标题栏中的 **Run** 测试该步骤。运行完成后，Fetch Hive 会在 **Output** 中显示记录。

在后续步骤中使用变量选择器，可插入该次运行可用的准确输出路径。该步骤返回记录列表，因此完整结果为：

```text theme={null}
{{step_2.output}}
```

输出是一个列表，没有 `items` 或 `results` 外层。要使用第一条记录：

```text theme={null}
{{step_2.output[0]}}
```

每条记录包括：

| 字段 | 含义 |
| - | - |
| `post_id` | 帖子 ID。 |
| `url` | 帖子 URL。 |
| `content` | 帖子文字。仅含媒体的帖子可能为空。 |
| `date_posted` | 发布时间。 |
| `user_username_raw` | 作者名称。 |
| `user_url` | 作者个人主页 URL。 |
| `num_comments` | 评论数。 |
| `num_shares` | 分享数。 |
| `likes` | 反应数（如有）。 |
| `attachments` | 帖子附带的图片、视频或文件。 |
| `post_type` | 帖子类型。 |
| `group_name` | 群组名称。 |
| `group_url` | 群组 URL。 |
| `group_members` | 群组成员数。 |
| `group_category` | 群组是否公开。 |

## 示例

从 **Search steps...** 的 **Content & Social** 分组中添加 **Facebook 群组帖子**。

将 **Name** 设为类似 `Facebook 群组帖子` 的名称。

在 **URL** 中输入Facebook 群组 URL，或点击 **Insert Variable** 使用先前步骤或工作流输入中的值。

点击 **Run**，在 **Output** 中查看记录。

## 说明

* 只能读取公开群组。
* 每篇帖子为一个条目。单次运行最多返回 500 篇，费用随返回数量增加。
* `content` 和 `likes` 可能为空，例如仅含图片的帖子。
* 每次运行至少消耗 2 个任务积分。费用随返回的记录数量增加。请参阅 [任务费用](https://docs.fetchhive.com/zh/resources/task-costs.md)。

另请参阅：[Reddit 帖子](https://docs.fetchhive.com/zh/workflows/steps/web-research/reddit-posts.md)、[创建和编辑](https://docs.fetchhive.com/zh/workflows/creating-and-editing.md)、[测试与迭代](https://docs.fetchhive.com/zh/workflows/testing-and-iteration.md) 和 [错误处理](https://docs.fetchhive.com/zh/workflows/error-handling.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.