Meta Users API

Operations on the User node

OpenAPI Specification

meta-users-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Meta Users API
  version: v22.0
  description: 'Operations tagged Users across 2 of this provider''s published API definitions: meta-openapi.yml, meta-users-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://graph.facebook.com/v22.0
  description: Meta Graph API
security:
- userAccessToken: []
tags:
- name: Users
  description: Operations on the User node
paths:
  /me:
    get:
      operationId: getMe
      summary: Meta Get current user
      description: Retrieves the User node for the user associated with the access token.
      tags:
      - Users
      parameters:
      - name: fields
        in: query
        description: Comma-separated list of fields to return.
        schema:
          type: string
      responses:
        '200':
          description: User profile
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        '401':
          description: Invalid access token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://graph.facebook.com/v22.0
      description: Meta Graph API
  /{user-id}:
    parameters:
    - name: user-id
      in: path
      required: true
      description: ID of the user.
      schema:
        type: string
    get:
      operationId: getUser
      summary: Meta Read user profile
      description: Retrieves fields and edges for a User node.
      tags:
      - Users
      parameters:
      - name: fields
        in: query
        description: Comma-separated list of fields to return.
        schema:
          type: string
      responses:
        '200':
          description: User profile
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        '404':
          description: User not found
    post:
      operationId: updateUser
      summary: Meta Update user profile
      description: Updates user information such as name, emoji color preference, or local news settings. Supports read-after-write.
      tags:
      - Users
      requestBody:
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: Update successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
    delete:
      operationId: deleteUser
      summary: Meta Delete test user
      description: Removes a test user account from the system.
      tags:
      - Users
      responses:
        '200':
          description: Deletion successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
    servers:
    - url: https://graph.facebook.com/v22.0
      description: Meta Graph API
  /{user-id}/feed:
    parameters:
    - name: user-id
      in: path
      required: true
      description: ID of the user.
      schema:
        type: string
    get:
      operationId: getUserFeed
      summary: Meta Get user feed
      description: Retrieves the feed of posts published by or on the user's timeline.
      tags:
      - Users
      responses:
        '200':
          description: Feed list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PagedList'
    servers:
    - url: https://graph.facebook.com/v22.0
      description: Meta Graph API
components:
  schemas:
    User:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        first_name:
          type: string
        last_name:
          type: string
        email:
          type: string
        picture:
          type: object
    PagedList:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
        paging:
          type: object
          properties:
            cursors:
              type: object
              properties:
                before:
                  type: string
                after:
                  type: string
            next:
              type: string
            previous:
              type: string
    SuccessResponse:
      type: object
      properties:
        success:
          type: boolean
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
            code:
              type: integer
  securitySchemes:
    userAccessToken:
      type: oauth2
      flows:
        implicit:
          authorizationUrl: https://www.facebook.com/v22.0/dialog/oauth
          scopes:
            public_profile: Access basic profile info
externalDocs:
  description: Meta Graph API User Reference
  url: https://developers.facebook.com/docs/graph-api/reference/user/
x-refined-from:
- meta-openapi.yml
- meta-users-api-openapi.yml
x-generated-from: https://developers.facebook.com/docs/graph-api/reference/user/
x-generated-by: claude-crawl-2026-05-08