2017-03-29 35 views
1

我在botframework儀表板中看到此問題。提供的URL未列入郵件擴展名列表

我已添加谷歌地圖作爲白名單上的域名。

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

全鏈路:

https://www.google.com/maps/place/51%C2%B030 '40 0.1%22N + 0%C2%B005'02.0%22W/@ 51.5111351,-0.0860752,17z /數據= 3M1 4B1 4M5 3M4!! !1s0x0:0x0!8m2!3d51.5111351!4d-0.0838865

爲什麼它不呈現爲白名單域?

編輯:我解決了這個問題。

https://maps.google.com/maps

我添加了鏈接。

+0

如果您已經解決了自己的問題,請添加您的答案,並將其標記爲已接受的答案。 https://meta.stackoverflow.com/questions/251078/how-to-update-and-accept-answers –

回答

1

只是想給一個更加明確的答案,因爲我有這個問題,以及..

上的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,它將起作用。