提供的URL未列入信使扩展的白名单

1 facebook-messenger botframework

我在botframework仪表板中遇到了这个问题.

我已将谷歌地图添加为白名单域名.

{
  "setting_type" : "domain_whitelisting",
  "domain_action_type": "add",
  "whitelisted_domains":[
    "https://www.google.com/maps/place/"
  ]
}
Run Code Online (Sandbox Code Playgroud)

完整链接:

https://www.google.com/maps/place/51%C2%B030 '40 .1%22N + 0%C2%B005'02.0%22W/@ 51.5111351,-0.0860752,17z/data =!3m1!4b1!4m5 !3M4 1s0x0:!!!为0x08平方米3d51.5111351 4D-0.0838865!

为什么它不会呈现为白名单的域名?

编辑:我解决了这个问题.

https://maps.google.com/maps

我添加了那个链接.

Zed*_*y22 6

我只想提出一个更明确的答案,因为我也有这个问题.

Messenger API上的文档的前几页不太清楚.

使用此调用将您的域列入白名单.记住它必须是HTTPS.

    curl -X POST -H "Content-Type: application/json" -d '{
  "setting_type" : "domain_whitelisting",
  "whitelisted_domains" : ["https://petersfancyapparel.com"],
  "domain_action_type": "add"
}' "https://graph.facebook.com/v2.6/me/thread_settings?access_token=PAGE_ACCESS_TOKEN"
Run Code Online (Sandbox Code Playgroud)

然后在URL上将"messenger_extensions"设置为true,它将起作用.