文档已更新。
中文(简体) 译文尚未完成。
英语更新时间:6月26日
中文(简体) 更新时间:2019年2月1日

whitelisted_domains Reference

Messenger Profile API

whitelisted_domains is a property of the Messenger Profile API. For information on retrieving, setting, updating, and deleting whitelisted_domains, see the Messenger Profile API Reference.

The whitelisted_domains property of your bot's Messenger profile specifies a list of third-party domains that are accessible in the Messenger webview for use with the Messenger Extensions SDK, the Checkbox Plugin, and the Customer Chat Plugin.

Requirements

To set or update the domain whitelist you must have the 'Administrator' role for the Page associated with the bot.

需要提供域名和 HTTPS

域必须满足以下要求才能加入白名单:

  • 通过 HTTPS 提供服务

  • 使用完全限定的域名,例如 https://www.messenger.com/。不支持使用 IP 地址和 localhost 加入白名单。

Whitelisting in Page Settings

In addition to using the Messenger Profile API, Page admins may also update their domain whitelist in Page settings by doing the following:

  1. Click Settings at the top of your Page
  2. Click Advance Messaging on the left
  3. Edit whitelisted domains for your page in the Whitelisted Domains section

whitelisted_domains Format

{
  "whitelisted_domains":[
    "<WHITELISTED_DOMAIN>",
    "<WHITELISTED_DOMAIN>",
    ...
  ]
}

Properties

Property Type Description

whitelisted_domains

Array<String>

A list of domains being used. All domains must be valid. Up to 50 domains allowed.

流量限制

对 Messenger 个人主页 API 的调用限制在每 10 分钟最多 10 次 API 调用。此流量限制以主页为单位执行。