问题描述
旧的Facebook API提供了用户性别/性别作为默认用户数据的一部分。显然,新的Graph API不提供这些信息,即使文档说明了这一点。
The old Facebook API provided the user sex/gender as part of the default user data. Apparently the new Graph API does not provide that information, even though the documentation says that it does.
我听说有人说你需要特殊的权限来获得它和其他数据,但是我没有成功地让它工作。
I've heard people say that you need to request special permissions to get it and other pieces of data, but I have not been successful in getting it to work.
有没有人有一个例子,使用Facebook Graph API,如何获得用户的性别和/或位置(城市/州/国家/地区)?
Does anyone have an example, using the Facebook Graph API, of how to get the user's gender and/or location (city/state/country/whatever)?
推荐答案
只是FYI,只有国家仍然缺少),而今天有时候,Graph API已经添加了性别。
Just FYI, location (City and state only, country is still missing) and gender have been added to the Graph API sometimes today.
我今晚正在测试一个应用,并注意到有更多的字段:)
I was testing an app tonight and noticed there was a couple more fields :)
这篇关于Facebook Graph API:用户性别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!