在 Facebook Graph API 2.0 中获取用户名字段
旧"Facebook Graph API 有一个用户名"字段,可用于创建人类可读的个人资料 URL.例如,我的用户名是sebastian.trug",结果是 Facebook 个人资料 URL http://www.facebook.com/sebastian.trug.
The "old" Facebook Graph API had a "username" field which could be used to create a human-readable profile URL. My username for example is "sebastian.trug" which results in a Facebook profile URL http://www.facebook.com/sebastian.trug.
使用 Graph API 2.0 Facebook 已从从/me"中检索到的用户数据.
With Graph API 2.0 Facebook has removed the "username" field from the user data as retrieved from "/me".
有没有办法通过 2.0 API 获取这些数据,或者用户名"现在是否被视为已弃用的字段?
Is there any way to get this data via the 2.0 API or is the "username" now being treated as a deprecated field?
Facebook 去掉了用户名,因为用户名是通过 Facebook 发送电子邮件的一种方式.
Facebook got rid of the username because the username is one way of sending emails via Facebook.
例如,给定 url http://www.facebook.com/sebastian.trug
相应的 Facebook 电子邮件将是 sebastian.trug@facebook.com
the corresponding Facebook email would be sebastian.trug@facebook.com
如果通过电子邮件发送,将直接接收到 messages
(如果 message
设置设置为 public
),否则接收 messages
代码>其他代码>收件箱.
which, if emailed, would be received to messages
directly (if the message
setting is set to public
), otherwise to the other
inbox.