Quick Reply breaking call
Closed this issue · 4 comments
ajsheldon93 commented
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 null
s in the function call. If you make the defaults as empty strings from the constructor itself, this should fix the issue.
jason-engage commented
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 ***@***.***> 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
<#101>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEP0mLHB4xCO-UGNnh3KK1Z7u1-mDb9Iks5r4ge4gaJpZM4NXFCf>
.
--
* Jason Shaw <jason@engageify.com>*, Developer
Tel. 647 783 7463 | Skype: jason.engage
en.gg | <http://en.gg/>Follow me on Facebook
<http://www.facebook.com/engagetheweb>
wittfabian commented
Check the examples:
https://github.com/pimax/fb-messenger-php-example/blob/master/index.php
wittfabian commented
Solved?
ajsheldon93 commented
@wittfabian Sorry, I didn't get a notification that there was a response. But Thank you!