反正有没有使用图形 API 获取用户的祖国名称?
我试图获取用户名,但 Facebook 会返回英文名,尽管用户的祖国不是英文区域。
我想获取用户的母语名称。
来人帮帮我!!
反正有没有使用图形 API 获取用户的祖国名称?
我试图获取用户名,但 Facebook 会返回英文名,尽管用户的祖国不是英文区域。
我想获取用户的母语名称。
来人帮帮我!!
Try accessing the name_format
field of the User object, this is equivalent to the name_format
field in the User FQL table and is documented as:
The user's name formatted to correctly handle Chinese, Japanese, Korean ordering
For me (English language) it appears the same as the name
field, but should be different for other locales
Example call is:
https://graph.facebook.com/<USER ID>?fields=name_format&access_token=ACCESS_TOKEN