pimax / fb-messenger-php

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

Quick Reply breaking call #101

Closed ajsheldon93 closed 7 years ago

ajsheldon93 commented 7 years ago

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.

jason-engage commented 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 .

--

wittfabian commented 7 years ago

Check the examples: https://github.com/pimax/fb-messenger-php-example/blob/master/index.php

wittfabian commented 7 years ago

Solved?

ajsheldon93 commented 7 years ago

@wittfabian Sorry, I didn't get a notification that there was a response. But Thank you!