> ## 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"}
{"query": "technology conference", "results_limit": 20}
```

## 与 MCP 一起使用

| 接口          | 值                                                     |
| ----------- | ----------------------------------------------------- |
| REST        | `POST /v1/facebook/events-search`                     |
| Compact MCP | `socq_execute` 与 `endpoint: "facebook/events-search"` |
| Typed MCP   | `socq_facebook_events_search`                         |
| CLI         | `socq facebook events-search`                         |

结果包括活动标识、日程安排文本、地点、出席率指标以及可用的封面媒体。
`results_limit` 默认为 100，接受 7 到 2,000 之间的值。


## OpenAPI

````yaml api-manual/agent-api/agent-api.json POST /v1/facebook/events-search
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/events-search:
    post:
      tags:
        - facebook
      summary: Facebook Events Search API
      description: Search public Facebook events by keyword.
      operationId: socq_facebook_events_search
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              additionalProperties: false
              properties:
                query:
                  type: string
                  minLength: 1
                  description: Search query.
                results_limit:
                  type: integer
                  minimum: 7
                  maximum: 2000
              required:
                - query
      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

````