Facebook · Capability

Facebook Threads API — Publishing

Facebook Threads API — Publishing. 2 operations. Lead operation: Facebook Create Threads Media. Self-contained Naftiko capability covering one Facebook business surface.

Run with Naftiko FacebookPublishing

What You Can Do

POST
Createthreadsmedia — Facebook Create Threads Media
/v1/{threads-user-id}/threads
POST
Publishthreadsmedia — Facebook Publish Threads Media
/v1/{threads-user-id}/threads-publish

MCP Tools

facebook-create-threads-media

Facebook Create Threads Media

facebook-publish-threads-media

Facebook Publish Threads Media

Capability Spec

threads-publishing.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Facebook Threads API — Publishing
  description: 'Facebook Threads API — Publishing. 2 operations. Lead operation: Facebook Create Threads Media. Self-contained
    Naftiko capability covering one Facebook business surface.'
  tags:
  - Facebook
  - Publishing
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FACEBOOK_API_KEY: FACEBOOK_API_KEY
capability:
  consumes:
  - type: http
    namespace: threads-publishing
    baseUri: https://graph.threads.net/v1.0
    description: Facebook Threads API — Publishing business capability. Self-contained, no shared references.
    resources:
    - name: threads-user-id-threads
      path: /{threads-user-id}/threads
      operations:
      - name: createthreadsmedia
        method: POST
        description: Facebook Create Threads Media
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: threads-user-id
          in: path
          type: string
          description: The Threads user ID.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: threads-user-id-threads_publish
      path: /{threads-user-id}/threads_publish
      operations:
      - name: publishthreadsmedia
        method: POST
        description: Facebook Publish Threads Media
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: threads-user-id
          in: path
          type: string
          description: The Threads user ID.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.FACEBOOK_API_KEY}}'
  exposes:
  - type: rest
    namespace: threads-publishing-rest
    port: 8080
    description: REST adapter for Facebook Threads API — Publishing. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/{threads-user-id}/threads
      name: threads-user-id-threads
      description: REST surface for threads-user-id-threads.
      operations:
      - method: POST
        name: createthreadsmedia
        description: Facebook Create Threads Media
        call: threads-publishing.createthreadsmedia
        with:
          threads-user-id: rest.threads-user-id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{threads-user-id}/threads-publish
      name: threads-user-id-threads-publish
      description: REST surface for threads-user-id-threads_publish.
      operations:
      - method: POST
        name: publishthreadsmedia
        description: Facebook Publish Threads Media
        call: threads-publishing.publishthreadsmedia
        with:
          threads-user-id: rest.threads-user-id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: threads-publishing-mcp
    port: 9090
    transport: http
    description: MCP adapter for Facebook Threads API — Publishing. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: facebook-create-threads-media
      description: Facebook Create Threads Media
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: threads-publishing.createthreadsmedia
      with:
        threads-user-id: tools.threads-user-id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: facebook-publish-threads-media
      description: Facebook Publish Threads Media
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: threads-publishing.publishthreadsmedia
      with:
        threads-user-id: tools.threads-user-id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.