You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何限制他人将WhatsApp Business号码添加至群聊?(Cloud API场景)

解决WhatsApp Cloud API号码被添加至群聊的限制问题

方法一:通过Meta Business Suite配置

  • 登录Meta Business Suite,关联你使用Cloud API的WhatsApp Business账号
  • 进入设置 > WhatsApp账号设置 > 隐私设置
  • 在群组权限板块,找到谁可以将我添加到群组选项,选择我的联系人或没人(按需选择)

    注:刚绑定Cloud API的账号,可能需要等待1-2小时让设置同步生效

方法二:通过Graph API直接配置

如果Business Suite中未找到对应选项,可调用WhatsApp Business Management API修改隐私设置:

  1. 调用POST /{whats-app-business-account-id}/phone_numbers/{phone-number-id}/settings接口
  2. 请求体参数设置:
{
  "privacy_settings": {
    "group_add": "CONTACTS_ONLY" // 可选值:ALL(所有人)、CONTACTS_ONLY(仅联系人)、NONE(没人)
  }
}
  1. 确保请求携带具备whatsapp_business_management权限的有效访问令牌

注意事项

  • 配置生效后,其他用户尝试添加该号码到群聊时会收到系统提示无法操作
  • 使用Graph API时,需确认访问令牌权限充足,且商务账号ID、号码ID填写正确

内容的提问来源于stack exchange,提问作者Mammad Yahyayev

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.25 19:47:01