ryanmark1867 / chatbot

chatbot 2H 2019
0 stars 1 forks source link

buttons for movie titles get truncated #37

Closed lchamber-luc closed 4 years ago

lchamber-luc commented 4 years ago

buttons titles get truncated to about 20 characters. may make it hard to identify the movie. is there a way to widen the button?

Test on iPhone 7 and iPad

ryanmark1867 commented 4 years ago

@lchamber-luc - Facebook documents a 20 character limit for text in quick replies (the kinds of buttons we're using to display the movie names in step 3 of demo 1) -

"The text to display on the quick reply button. 20 character limit." in https://developers.facebook.com/docs/messenger-platform/reference/send-api/quick-replies/

I searched extensively and I don't see any way around this limit on the maximum text length for quick reply button text.

An alternative (has some risk for demo 1 at this stage) is to use a carousel rather than quick replies in step 3. The carousel could have the movie poster, movie title, and a button that when clicked would perform the same action as the quick replies in step 3 currently. Carousel title can be 80 characters long, so this would address the truncated movie title problem.

PROS:

CONS:

I'll wait for us to discuss pros and cons before I make any code changes related to this.

ryanmark1867 commented 4 years ago

Fixed by using carousel to show the examples of sci-fi movies in step 3:

image