Is it possibile to hide the payload text response?
ponghi opened this issue · 8 comments
Hi all,
I've used a StructuredMessage with a MessageButton like this:
new MessageButton(MessageButton::TYPE_POSTBACK, 'Info', 'def')
def is my Payload and I've handled it with some generic text... but when I click on the button "Info" the bot response me with the Payload text before load the generic text...
Is it possible to hide the payload text??
That's a weird behavior, are you skipping is_echo
and delivery
like in the example ? Also could you show the part of your code that does the actual processing (case or whatever) ?
I'm using exactly the example that you have linked.
I've also set my webhook for manage the message_echoes and message_delivery but into the variable $message
I dont find any key like $message['delivery']
or $message['message']['is_echo']
Maybe a workaround could be send an object as a payload instead of a generic text...for example:
new MessageButton(MessageButton::TYPE_POSTBACK, 'Info', new Message($message['sender']['id'], 'This is a simple text message.'))
Any suggestions?
Are you sure your app subscribed in messages
webhooks?
in https://developers.facebook.com/apps/APP_ID/webhooks/
Are you sure you're using the admin account to test or added your account as a tester?
Yes I did, bot messages
and message_postback
.
I'm actually using ad admin account...
Everytime that I push a button, the PAYLOAD text is written to me by the bot...
Ayy, do you mean the payload text
and not the payload
itself?
You can't send payload without that text being displayed to the users, as far as i know..
@Yiidiir Yes that's right!
maybe close this @wittfabian