如何使用最新的Facebook SDK从iOS中的Facebook API获取用户的生日?

问题描述:

如何使用最新的Facebook SDK从iOS中的Facebook API获取用户的生日?

How to fetch user's birthday from Facebook API in iOS using latest Facebook sdk?

我已尝试获取它

 {@"fields": @"id, name, link, first_name, last_name, picture.type(large), email, birthday"}

并已获得许可

[login logInWithReadPermissions:@[@"public_profile", @"email", @"user_friends",@"user_birthday"] handler:^(FBSDKLoginManagerLoginResult *result, NSError *error)

但无法获取生日.

您无法获取仅您可以获取的用户生日,因此,如果您的应用程序比您批准的应用程序要晚,则必须在Facebook开发人员中发送要审核的应用程序以供批准可以设置额外的权限,但是我不认为您可以得到用户的生日.

You can't fetch users birthdate only yours you can get and you have to send app in review for approve in facebook developer after than if your app approve than you can set extra permissions but i don't think that users birthday you can get.