URL Button with Messenger Extensions always redirect to fallback_url

℡╲_俬逩灬. 提交于 2019-12-05 06:47:22

问题


Working on a facebook messenger chatbot, I try to use Webview and Extensions to display enhanced content (in my case, a datepicker).

As describe in documentation, I send a URL Button with Messenger Extensions message, with a fallback_url to handle browser users.

{
   'type': 'web_url',
   'url':'https://abcdef.localtunnel.me/html/chatbotDatepicker.html',
   'title': 'Pick a date',
   'webview_height_ratio': 'tall',
   'messenger_extensions': true,
   'fallback_url': 'https://abcdef.localtunnel.me/html/chatbotError.html'
}

On my Android phone, everytime I click on that button, it properly open my webview but always and only using the fallback_url. If I remove the fallback_url it will use url as expected but then Facebook Javascript SDK only trigger errors 2071011 (like this one Messenger Extensions Javascript SDK Error 2071011).

I feel like messenger_extensions might be disable, but I couldn't find any reference in documentation about enabling or disabling it.
May be this is related to the fact my application is public (has been reviewed by facebook), but I don't think so.

Does anyone ever had a similar problem, and know how to fix this ?! Thx a lot.


回答1:


its a valid bug and facebook team is working on it.Here is link to that https://developers.facebook.com/bugs/1676913532599603/



来源:https://stackoverflow.com/questions/40756447/url-button-with-messenger-extensions-always-redirect-to-fallback-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!