Limitations for image files:
- Supported file formats are JPEG, GIF, PNG, WEBP, and HEIC/HEIF
- Each of the dimensions must be no larger than 10 000 pixels
- With default server configuration, the maximum file size is 10 MB
- Alpha transparency is not supported. Images with a transparent background will be flattened to a white background
- GIF animation is not supported. Animated GIFs will only show the first frame
Uploading images for wall posts, any comments, and private messages
- Call photos.getAttachmentUploadServer
- Upload the file by sending a
POSTrequest to theupload_urlyou received in the previous step. Use themultipart/form-dataformat and put the file into field namedphoto - On success, the server will return a JSON object containing the
idandhashfields - Add these fields to your attachment JSON, see media attachments for details
Uploading user and group profile pictures
TODO
Uploading photos to albums
TODO