pimax/fb-messenger-php

default_action for MessageElement

Closed this issue · 8 comments

#103

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/"
}

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

Check the implementation of StructuredMessage.php and understand the structure.

@jason-engage any update?

@nasirkhan I've made the pull request. Should go live soon if everything ok.

Done!

@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?

Don't use closed issues!