---
title: "Create a Facebook token"
method: POST
path: "/gdc/projects/{projectId}/dataload/download/facebook/tokens"
tags: ["facebook"]
---

# Create a Facebook token

`POST /gdc/projects/{projectId}/dataload/download/facebook/tokens`

## Request

- Base URL: `https://secure.gooddata.com`
- URL: `https://secure.gooddata.com/gdc/projects/{projectId}/dataload/download/facebook/tokens`
- Auth: none declared

## Request body

- FacebookTokenInit
  - `facebookToken` object, required
    - `notificationsEnabled` union, required
      - '0' | '1'
      - 0 | 1
      - boolean
    - `email` string, email, required
    - `label` string
    - `applicationId` string, required
    - `applicationSecret` string, required
    - `scope` string[]: facebook permissions the caller demands

## Response `201`

Created - New Facebook download task created

- URIResponse
  - `uri` string, required

## Other responses

- `400`: Bad Request - Invalid data in the request
- `409`: Conflict - Token with the same userId already exists in the project

---

[API](https://skmtc.dev/gooddata/apis/gooddata-api-documentation.md) - [All operations](https://skmtc.dev/gooddata/apis/gooddata-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/gooddata/apis/gooddata-api-documentation/revisions/e5dc0ee6ab00?raw)
