Closed ajsheldon93 closed 7 years ago
Wrap the quickreplybuttons in an array. And im not 100% sure your arguments are correct. Must specify postback or location type I think...
On Thu, May 11, 2017 at 1:53 AM Andrew Sheldon notifications@github.com wrote:
When I add quick replies to a message without a payload or image_url, the call does not go through. To fix this I had to create a QuickReplyButton like this: new QuickReplyButton('text', 'Sample Test Here', '', '') This has two extra blank strings to override the default nulls in the function call. If you make the defaults as empty strings from the constructor itself, this should fix the issue.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pimax/fb-messenger-php/issues/101, or mute the thread https://github.com/notifications/unsubscribe-auth/AEP0mLHB4xCO-UGNnh3KK1Z7u1-mDb9Iks5r4ge4gaJpZM4NXFCf .
--
Check the examples: https://github.com/pimax/fb-messenger-php-example/blob/master/index.php
Solved?
@wittfabian Sorry, I didn't get a notification that there was a response. But Thank you!
When I add quick replies to a message without a payload or image_url, the call does not go through. To fix this I had to create a QuickReplyButton like this:
new QuickReplyButton('text', 'Sample Test Here', '', '')
This has two extra blank strings to override the defaultnull
s in the function call. If you make the defaults as empty strings from the constructor itself, this should fix the issue.