Botframework 提供的URL未被列入messenger扩展的白名单

Botframework 提供的URL未被列入messenger扩展的白名单,botframework,facebook-messenger,Botframework,Facebook Messenger,我在botframework仪表板中发现了这个问题 我已经将谷歌地图添加为白名单域名 { "setting_type" : "domain_whitelisting", "domain_action_type": "add", "whitelisted_domains":[ "https://www.google.com/maps/place/" ] } 完整链接: '40.1%22N+0%C2%B005'02.0%22W/@51.5111351,-0.0860752,

我在botframework仪表板中发现了这个问题

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

{
  "setting_type" : "domain_whitelisting",
  "domain_action_type": "add",
  "whitelisted_domains":[
    "https://www.google.com/maps/place/"
  ]
}
完整链接:

'40.1%22N+0%C2%B005'02.0%22W/@51.5111351,-0.0860752,17z/数据=!3m1!4b1!4m5!3m4!1s0x0:0x0!8m2!3d51.511131!4d-0.0838865

为什么它不呈现为白名单域

编辑:我解决了这个问题


我添加了那个链接。

只是想给出一个更清晰的答案,因为我也有这个问题

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"

然后在URL上将messenger_extensions设置为true,它就会工作

我也想给出一个更清楚的答案,因为我也有这个问题

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"

然后在URL上将messenger_extensions设置为true,它就会工作

如果您已经解决了自己的问题,请添加您的答案,并将其标记为已接受的答案。如果您已经解决了自己的问题,请添加您的答案,并将其标记为已接受的答案。