无法从 Facebook Graph API 为已获得“ads_read”权限的用户检索广告帐户

Cannot retrieve ad accounts from Facebook Graph API for user who has authorized with `ads_read` permission

我有一个用户可以使用 ads_read 权限在我们的应用程序上授权 Facebook,但是当我们尝试使用 / 从该用户的帐户获取广告帐户时Facebook Graph API 上的 adaccounts edge,它 returns 一个错误:

{
  error: {
    message: "Unsupported get request. Object with ID '<USER_ID>' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
    type: 'GraphMethodException',
    code: 100,
    error_subcode: 33,
    fbtrace_id: 'A3UCn8GlZiw9s3MRFG8sDUx'
  }
}

我在 Facebook 社区发现了一个类似的问题,但它来自 Graph API 版本 3。 https://developers.facebook.com/community/threads/489913344898099/

为什么我无法检索该用户的广告帐户?

我正在对图形 API 使用常规 GET 请求,使用从 Node.js 服务器获取数据来检索此数据。

      fetch(
        `https://graph.facebook.com/v10.0/${<USER_ID>}/adaccounts?fields=name,id,account_id&access_token=${<ACCESS_TOKEN>}`,
        {
          method: "GET"
        }
      )
        .then((_res) => _res.json())
        .then((accounts) => {
        // ... do stuff with ad accounts
      })

尝试 ads_management 许可。

根据 FB 文档,我猜与 /adaccounts 关联的权限是 ads_managementads_read 与 Insight API 等阅读广告报告相关。