从 Messenger api 获取 public_profile

Get public_profile from messenger api

有什么方法可以从 Messenger api 获取 public_profile 信息吗?我只需要用户的名字。

我试过 GET https://graph.facebook.com/<PSID>?fields=first_name&access_token=<PAGE_ACCESS_TOKEN> (https://developers.facebook.com/docs/messenger-platform/identity/user-profile/),但它只对我和我的页面有效。对于其他用户,我得到了错误:

(#3) Application does not have the capability to make this API call."

我是否需要申请 业务资产用户配置文件访问权限public_profile 对 Messenger bot 完全没用吗?

我完全迷失在 FB 文档中,我发现的所有其他信息都太旧了。

是的,您将需要业务资产用户配置文件访问权限。

您链接到的页面上有一条通知: “要检索用户的个人资料信息,您需要拥有业务资产用户个人资料访问功能的高级访问权限。”

:)