> ## 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 Group Posts

> Collect posts from public Facebook groups.

# Facebook Group Posts

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

## Use with MCP

| Interface   | Value                                                  |
| ----------- | ------------------------------------------------------ |
| REST        | `POST /v1/facebook/group-posts`                        |
| Compact MCP | `socq_execute` with `endpoint: "facebook/group-posts"` |
| Typed MCP   | `socq_facebook_group_posts`                            |
| CLI         | `socq facebook group-posts`                            |

`sort_by` accepts `top_posts`, `recent_activity`, `chronological`, or `chronological_listings`.
`results_limit` defaults to 100, accepts values from 3 through 2,000, and applies to each group 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

````