pimax / fb-messenger-php

Facebook Messenger Bot PHP API
GNU General Public License v2.0
314 stars 147 forks source link

How to listen to post back from quick reply button #95

Closed ekundayo-ab closed 7 years ago

ekundayo-ab commented 7 years ago

Kindly make available an example to catch the POSTBACK of a quick reply button.

Thanks

Yiidiir commented 7 years ago

Look at this: Message Structure Clicking the QuickReply Button sends the same message structure as other types PLUS(+) 'quick_reply'=>'payload' under 'message' so you can get the value of the quick reply payload with: $message['message']['quick_reply']['payload']; Good luck! EDIT: All credit goes to @ipimax :)

ekundayo-ab commented 7 years ago

Thanks Got it.