user1371314
user1371314

Reputation: 832

Facebook Messenger Bot Framework images

I have a bot that is running on both Skype and Facebook, hero and thumbnail cards sent to Skype appear as expected but on Facebook the image is stretched and scaled to fit the size of the card.

How can i stop Facebook doing this as its undesirable?

Upvotes: 1

Views: 469

Answers (1)

Xeno-D
Xeno-D

Reputation: 2213

For Facebook messenger there are 2 sizes possible. 'Horizontal' which has a 1.91:1 ratio and 'Square' which has a 1:1 ratio. The 'Horizontal' option is the default value.

When creating a Hero or thumbnail card using the classes provided in the framework this value can not be set. If you want to set this value you will have to implement your own model and pass your own json back.

Check out the documentation for Facebook here.

Upvotes: 1

Related Questions