0
根据Facebook文档https://developers.facebook.com/docs/messenger-platform/guides/chat-extensions#drawer“要允许您的机器人出现在添加了它的人的抽屉中,您必须设置其主页URL。”设置Facebook聊天扩展的主页URL
我下面设置域名白名单,然后设置家庭URL
# add domain to whitelist
curl -X POST -H "Content-Type: application/json" -d '{
"whitelisted_domains":[
$URL
]
}' "https://graph.facebook.com/v2.6/me/messenger_profile?access_token=$ACCESS_TOKEN"
# set domain as home URL
curl -X POST -H "Content-Type: application/json" -d '{
"home_url" : {
"url": $URL,
"webview_height_ratio": "tall",
"in_test":true
}
}' "https://graph.facebook.com/v2.6/me/messenger_profile?access_token=$ACCESS_TOKEN"
的文档https://developers.facebook.com/docs/messenger-platform/messenger-profile/domain-whitelisting对于这都返回成功信息
{
"result":"success"
}
但是,当我检查什么是集通过运行列入白名单的网域和主网址
# get home URL
curl -X GET "https://graph.facebook.com/v2.6/me/messenger_profile?fields=home_url&access_token=$ACCESS_TOKEN"
# get existing whitelist domains
curl -X GET "https://graph.facebook.com/v2.6/me/messenger_profile?fields=whitelisted_domains&access_token=$ACCESS_TOKEN"
我是gett一个奇怪的回应
{"data":[]}%
我是否错过了一个步骤,或者是获得列入白名单的域和主页URL的响应被破坏?