botpress / botpress-examples

52 stars 35 forks source link

Botpress does not send response to the Messenger #10

Open thmohd opened 6 years ago

thmohd commented 6 years ago

So I set up everything and I see all the requests on my server when I test Facebook Messenger, however, I don't get any response back. I enabled all hook events. I get no errors.

here is my hear code


bp.hear({
    platform: 'facebook',
    type: 'message',
    text: 'hello world'
  }, (event, next) => {

    const id = event.user.id
    const last_name = event.user.last_name
    const first_name = event.user.first_name

    const text = 'Congrats ' + first_name + " " + last_name + "! Your first chatbot using Botpress is now alive."
    bp.messenger.sendText(id, text)
  })```

Thank you for your help
slvnperron commented 6 years ago

This is v1 related. Mohammed can you upgrade to Botpress 10 ?

On Mon, Jun 11, 2018, 8:02 PM Mohammad Althayabeh notifications@github.com wrote:

So I set up everything and I see all the requests on my server when I test Facebook Messenger, however, I don't get any response back. I enabled all hook events. I get no errors.

here is my hear code

bp.hear({ platform: 'facebook', type: 'message', text: 'hello world' }, (event, next) => {

const id = event.user.id
const last_name = event.user.last_name
const first_name = event.user.first_name

const text = 'Congrats ' + first_name + " " + last_name + "! Your first chatbot using Botpress is now alive."
bp.messenger.sendText(id, text)

})```

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/botpress/botpress-examples/issues/10, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQStBq9ii3pWWqpn4nDpZV58s5ecHzmks5t7y8pgaJpZM4Ujs-v .