是的,您可以使用Graph API查询用户,这里是我的对象,如您所见,我有一个名为gender的属性,我相信如果用户已将其设置为此属性,则可以隐藏此属性,因此永远不要假设这是在回应......
这还要求目标用户授予您的应用程序基本信息访问权限.
{
"id": "754124803",
"name": "Daniel Phillips",
"first_name": "Daniel",
"last_name": "Phillips",
"link": "https://www.facebook.com/daniel.j.p",
"username": "daniel.j.p",
"gender": "male",
"timezone": 0,
"locale": "en_GB",
"verified": true,
"updated_time": "2012-02-04T16:00:42+0000",
"type": "user"
}
Run Code Online (Sandbox Code Playgroud)
如果您只想测试一下,请使用Graph API Explorer:https://developers.facebook.com/tools/explorer/
| 归档时间: |
|
| 查看次数: |
5321 次 |
| 最近记录: |