Show navigation ≫
≪ Hide navigation
Body Elements > Gallery

Use case

Renders an image gallery.

Structure

Optional parameters are indicated as "(Optional)".

Parameter Meaning Notes
type (string) The type of body element.
  • Must be gallery
data (object)
  • images (array of image_objects) = the list of images to show in the gallery.
The data of the element.
  • This parameter requires a Connected Web Image Object. See the Object > Image documentation to understand more.
Continue to the Advertising Body Element definition

Example

{
		
    "type": "gallery",
    "data": {
			
        "images": [

	    {
		
    	        "url": "https://fbwcdn.com/image/main/connectedweb/showcase/image2.jpg",
                "width": 1920,
                "height": 1080

	    },
	    {
		
    	        "url": "https://fbwcdn.com/image/main/connectedweb/showcase/image3.jpg",
                "width": 1920,
                "height": 1080

	    },
	    {
		
    	        "url": "https://fbwcdn.com/image/main/connectedweb/showcase/image4.jpg",
                "width": 1920,
                "height": 1080,
                "caption": "Infinite and more."	

	    },
	    {
		
    	        "url": "https://fbwcdn.com/image/main/connectedweb/showcase/image5.jpg",
                "width": 1920,
                "height": 1080

	    }

	]
			
    }
		
}
Show navigation ≫
≪ Hide navigation