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

# Facebook 群组帖子

> 从公共 Facebook 群组采集帖子。

# Facebook 群组帖子

```json theme={"system"}
{"urls": ["https://www.facebook.com/groups/GROUP_ID/"], "results_limit": 30, "sort_by": "recent_activity"}
```

## 与 MCP 一起使用

| 接口          | 值                                                   |
| ----------- | --------------------------------------------------- |
| REST        | `POST /v1/facebook/group-posts`                     |
| Compact MCP | `socq_execute` 与 `endpoint: "facebook/group-posts"` |
| Typed MCP   | `socq_facebook_group_posts`                         |
| CLI         | `socq facebook group-posts`                         |

`sort_by` 接受 `top_posts`、`recent_activity`、`chronological` 或 `chronological_listings`。
`results_limit` 默认为 100，接受 3 到 2,000 之间的值，并应用于每个组 URL。


## OpenAPI

````yaml api-manual/agent-api/agent-api.json POST /v1/facebook/group-posts
openapi: 3.1.0
info:
  title: SocQ Agent API
  version: v1-57489840196e
  description: Asynchronous social data API generated from the SocQ Capability Registry.
servers:
  - url: https://api.socq.ai
security: []
paths:
  /v1/facebook/group-posts:
    post:
      tags:
        - facebook
      summary: Facebook Group Posts API
      description: Collect posts from public Facebook groups.
      operationId: socq_facebook_group_posts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              additionalProperties: false
              properties:
                results_limit:
                  type: integer
                  minimum: 3
                  maximum: 2000
                sort_by:
                  type: string
                  minLength: 1
                urls:
                  type: array
                  items:
                    type: string
                    minLength: 1
                  minItems: 1
                  description: Public profile or content URLs.
              required:
                - urls
      responses:
        '200':
          description: Task accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentSubmitResponse'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    AgentSubmitResponse:
      type: object
      properties:
        code:
          type: integer
          const: 200
        data:
          type: object
          properties:
            task_id:
              type: string
            status:
              type: string
            created_time:
              type:
                - string
                - 'null'
            idempotent_replay:
              type: boolean
          required:
            - task_id
            - status
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````