eikenottt
(Eikenottt)
August 8, 2018, 7:09pm
1
How can I create a button which sends the user to an external url? (url is whitelisted in messenger-platform)
I have tried to use this in custom actions:
buttons = [
Button(type="web_url", title="URL Title", url="<URL>")
]
and this:
buttons = [{
"type":"web_url",
"title":"URL Title",
"url":"<URL>"
}]
with both:
dispatcher.utter_button_message(response, buttons)
and dispatcher.utter_button_template(response, buttons, tracker)
The bot didn’t write anything in messenger when using url
instead of payload
The same goes for this in domain.yml:
- text: "Message"
buttons:
- title: "URL Title"
url: "<URL>"
Is there something I’m missing?
1 Like
ahkg
(Audun Gulbrandsen)
August 9, 2018, 11:32am
2
I have the same problem. Does anyone have a suggestions on how to fix this?
rasa5
(krati)
August 27, 2018, 10:57am
3
Hey, kindly share the solution if you have figured out.
najeebp
(Najeeb P)
October 16, 2018, 2:12pm
4
I have the same problem. Please suggest a solution?
smn-snkl
(Simon)
October 31, 2018, 1:41pm
5
Just stumbled across the same issue. I believe the native facebook channel is not able to handle anything but postback or text buttons because the function ‘_add_postback_info’ is called every time, modifying the button type to ‘postback’.
Anyone already figured out a solution? Otherwise we probably need to extend / modify the facebook channel.