如何使用Facebook API获取性别和日期生日?

时间:2018-09-17 15:03:45

标签: facebook

(我正在使用带有插件cordova-plugin-facebook4的IONIC)并带有以下代码:

facebookConnectPlugin.api('/me?fields=email,name,gender,picture&access_token=' + authResponse.accessToken, ["public_profile"], function (response) {

我收到此回复:

{"email":"xxxxx@hotmail.com","name":"xxxx Molina","picture":{"data":{"height":50,"is_silhouette":false,"url":"https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2076928542548945&height=50&width=50&ext=1539748506&hash=AeRdIrWpWFtDY_k8","width":50}},"id":"2076928542548xxx"}

如何获取实际用户的性别和生日?

1 个答案:

答案 0 :(得分:0)

尝试一下

null