Facebook Messenger 平台上提供哪些用户个人资料信息?

What user profile info is available on the Facebook Messenger Platform?

Messenger 平台文档展示了如何通过 API 获取用户个人资料信息的示例(参见 this)。 如果显示的示例实际上包含所有可能检索的信息(意思是:first_name、last_name、profile_pic、语言环境、时区、性别),或者它只是一个示例,我完全可以理解我可以通过 API 找到更多用户数据(同样,指的是仅通过 Messenger 平台,也就是通过机器人来执行此操作)。 谢谢!

这是目前唯一可通过聊天机器人 API 获得的用户信息,您不能使用任何其他 API 查询用户信息,因为我们在我们的网站上获得的用户 ID(发件人 ID) webhook 仅针对 App-Page 的范围,与实际的 Facebook UserId 完全不同,目前无法 link 这两个 Id。

您可以要求用户使用 FB Login API 和 link 这两个 ID 登录,但这不是理想的方式。

编辑:2016-07-26

Facebook 推出了名为 Account Linking. This can be used to identify a user who has created an account on your website via Facebook Login. Facebook login has its own set of permissions which can be used to get a lot more information via Facebook graph API. You can find the complete list here 的 Messenger 平台新功能。

您可以检索 - first_name、last_name、profile_pic、语言环境、时区、性别

可以通过快速调用 FB 图来检索此信息:

https://graph.facebook.com/v2.6/<USER_ID>?fields=first_name,last_name,profile_pic,locale,timezone,gender&access_token=<PAGE_ACCESS_TOKEN>

Complete Guide - Messenger Platform

Facebook 最近向用户个人资料 API 添加了 "is payment enabled" 字段 https://developers.facebook.com/docs/messenger-platform/user-profile。这会告诉您用户是否可以使用 Facebook 支付进行支付。