zendesk/sunshine-conversations-javascript

Shows only 3 action button in FB Messenger

devhyunjae opened this issue · 2 comments

Code

smooch.appUsers.sendMessage('5963c0d619a30a2e00de36b8', 'c7f6e6d6c3a637261bd9656f', {
    text: 'Just put some vinegar on it',
    role: 'appMaker',
    type: 'text',
    actions: [
      {
        type: 'link',
        text: 'Slot 1',
        uri: 'http://example.com'
      },
      {
        type: 'link',
        text: 'Slot 2',
        uri: 'http://example.com'
      },
      {
        type: 'link',
        text: 'Slot 3',
        uri: 'http://example.com'
      },
      {
        type: 'link',
        text: 'Slot 4',
        uri: 'http://example.com'
      },
      {
        type: 'link',
        text: 'Slot 5',
        uri: 'http://example.com'
      },
    ]
})

In our web(Works fine)

screen shot 2017-07-31 at 2 43 08 pm

In FB Messenger(Shows only 3)

screen shot 2017-07-31 at 2 43 01 pm

screen shot 2017-07-31 at 5 19 13 pm

Looks like this is FB policy. But still, should be great if you guys update your docs to announce this or make a warning log that the developers can know

Thanks for the report. We've added a mention in the Facebook Messenger docs about the size restriction