【问题标题】:How remove whitespace or set width on facebook chatbot quickreplies如何在 Facebook 聊天机器人快速回复中删除空格或设置宽度
【发布时间】:2018-06-14 13:42:31
【问题描述】:

我正在为 Facebook Messenger 创建评分聊天机器人。

不幸的是,我在 android 和 iOS 上得到了不同的结果。

在 iOS 和 Web 上,我得到了这样的快速回复。:

在 Android 上,我得到了一个带有滚动功能的大按钮。

我可以去掉android上数字后的前导空格或者设置最小宽度吗??

我使用的代码是:

quick_replies: [ 
        { content_type: 'text', title: '0',  payload: `0-${key}` },
        { content_type: 'text', title: '1',  payload: `1-${key}` },
        { content_type: 'text', title: '2',  payload: `2-${key}` },
        { content_type: 'text', title: '3',  payload: `3-${key}` },
        { content_type: 'text', title: '4',  payload: `4-${key}` },
        { content_type: 'text', title: '5',  payload: `5-${key}` },
        { content_type: 'text', title: '6',  payload: `6-${key}` },
        { content_type: 'text', title: '7',  payload: `7-${key}` },
        { content_type: 'text', title: '8',  payload: `8-${key}` },
        { content_type: 'text', title: '9',  payload: `9-${key}` },
        { content_type: 'text', title: '10', payload: `1-|${key}` }
    ]

【问题讨论】:

    标签: javascript facebook facebook-chatbot


    【解决方案1】:

    目前不支持此功能,但请在 android 上打开意外空白的错误报告:

    https://developers.facebook.com/support/bugs/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-10-06
      • 2017-04-12
      • 1970-01-01
      • 1970-01-01
      • 2016-08-05
      • 2019-01-13
      • 1970-01-01
      相关资源
      最近更新 更多