default_action for MessageElement
Closed this issue · 8 comments
wittfabian commented
Reference:
https://developers.facebook.com/docs/messenger-platform/send-api-reference/list-template
"default_action": {
"type": "web_url",
"url": "https://peterssendreceiveapp.ngrok.io/shop_collection",
"messenger_extensions": true,
"webview_height_ratio": "tall",
"fallback_url": "https://peterssendreceiveapp.ngrok.io/"
}
jason-engage commented
I can probably take care of this by the end of the week if no one else does.
nasirkhan commented
default_action
is also a part of the Generic Template and the structure is same as the List Template.
Ref: https://developers.facebook.com/docs/messenger-platform/send-api-reference/generic-template
wittfabian commented
Check the implementation of StructuredMessage.php and understand the structure.
nasirkhan commented
@jason-engage any update?
jason-engage commented
@nasirkhan I've made the pull request. Should go live soon if everything ok.
wittfabian commented
Done!
nasirkhan commented
@jason-engage I checked your pull request and found that you added a new param default_action
in Messages/MessageElement.php
. can you please tell me how can i use this param?
wittfabian commented
Don't use closed issues!