简体   繁体   English

facebook Messenger Webview和Messenger扩展

[英]facebook messenger Webview and Messenger Extensions

这是Facebook Messenger的其他Messenger扩展程序

I am using JSON which is node.js for Facebook Messenger. 我正在使用JSON,它是Facebook Messenger的node.js. What should I do if I want to do exactly the same as image above or this link: 如果我想做与上图或此链接完全相同的操作,该怎么办:

https://developers.facebook.com/docs/messenger-platform/introduction/conversation-components https://developers.facebook.com/docs/messenger-platform/introduction/conversation-components

The menu that has been opened there is a Webview. 在那里打开的菜单有一个Webview。 It is a page that have been designed with these buttons. 这是用这些按钮设计的页面。 The buttons could be used to send requests to your server. 这些按钮可用于将请求发送到您的服务器。 To define the height as on the screen, you have to pass a parameter to the button that will open the webhook, which is "compact". 要在屏幕上定义高度,您必须将参数传递给将打开Webhook的按钮,即“紧凑”。

{
  "type":"web_url",
  "url":"<URL_TO_OPEN>",
  "title":"<BUTTON_TEXT>",
  "webview_height_ratio": "compact",
  "messenger_extensions": "<true|false>",  
  "fallback_url": "<URL_TO_FALLBACK_TO>"
}

You can find more information here: 您可以在这里找到更多信息:

https://developers.facebook.com/docs/messenger-platform/webview https://developers.facebook.com/docs/messenger-platform/reference/buttons/url https://developers.facebook.com/docs/messenger-platform/webview https://developers.facebook.com/docs/messenger-platform/reference/buttons/url

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM