Sandesh B Suvarna
Sandesh B Suvarna

Reputation: 771

Facebook Messenger Bot, Send multiple Image Attachment

I'm creating a Facebook bot, where the bot sends out 5 image attachment.

Below is the Json template to send out 1 image

"message":{
"attachment":{
  "type":"image",
  "payload":{
    "url":"https://petersapparel.com/img/shirt.png"
  }
}

}

I Need Json formate to send multiple image attachment on Facebook messenger api.

Upvotes: 5

Views: 3764

Answers (1)

Kevin Doveton
Kevin Doveton

Reputation: 396

You could either send out several messages to your user in a for loop or you could use a list template to send the photos (and captions) together, but it would render differently.

Upvotes: 4

Related Questions