- Get started
- Structure
- Body Elements
- Objects
Defines an image to be rendered considering multiple resolutions and formats for different screens and devices.
Optional parameters are indicated as "(Optional)".
Parameter | Meaning | Notes |
---|---|---|
url (string) | The url of the image. |
|
width (integer) (optional) | The width of the image. |
|
height (integer) (optional) | The height of the image. |
|
type (string) (optional) | The mime type of the image. |
|
size (integer) (optional) | The size of the image, in bytes. |
|
caption (string) (optional) | The plain text caption of the image. |
|
allow_storage (boolean) (optional) | Allows to store the image regardless of the original one has been removed or not. |
|
resolutions (associatvie array of media_versions_objects) (optional) | Other resolutions of the image. |
|
{
"url": "https://fbwcdn.com/image/main/connectedweb/showcase/image1.jpg",
"width": 1920,
"height": 1080,
"caption": "Between two rocks."
}