Resumable Upload - Create an Upload Session

POST https://graph.facebook.com/{{Version}}/app/uploads/?file_length=<YOUR_FILE_LENGTH>&file_type=image/jpeg&file_name=myprofile.jpg

The Resumable Upload series of requests allow you to upload Profile Pictures to Meta so you can receive a handle to update these pictures in the Business Profile API. The Resumable Upload requests consist of the following:

  • Resumable Upload - Create an Upload Session
  • Resumable Upload - Upload File Data
  • Resumable Upload - Query File Upload Status

To create a new upload session, make a POST call using the /app/uploads endpoint.

For more information, see Create an Upload Session .

Response

The call returns a server-generated value that includes the session ID that you can use in later calls.

Copy this value and Open the Environment quick look in Qodex and paste it in the CURRENT VALUE for Upload-ID .

Request Params

| Key | Datatype | Required | Description | | file_length | string | | Required<br/>Specifies the size of your file in bytes. | | file_type | string | | Required<br/>Specifies the MIME type. Values are <ul><li>image/jpeg</li><li>image/png</li><li>video/mp4</li></ul> | | file_name | string | | Optional<br/>Specifies the file name you are using to create the session. |

HEADERS

| Key | Datatype | Required | Description | | Authorization | string | | |

RESPONSES

status: OK

{&quot;id&quot;:&quot;upload:MTphdHRhY2htZW50Ojlk2mJiZxUwLWV6MDUtNDIwMy05yTA3LWQ4ZDPmZGFkNTM0NT8=?sig=ARZqkGCA_uQMxC8nHKI&quot;}