简体   繁体   English

我们如何使用Facebook图形API获取用户的生日?

[英]How we can get user's birthday using facebook graph api?

I am trying to get birth of date of logged-in facebook user . 我试图获得已登录Facebook用户的日期。 i tried the code mentioned on facebook developer website , but still i didn't got birthday date . 我尝试了在Facebook开发者网站上提到的代码,但仍然没有生日。

I have tried the code below to get user info: 我尝试了下面的代码来获取用户信息:

  [FBRequestConnection startForMeWithCompletionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
        if (!error) {
            // Success! Include your code to handle the results here
            NSLog(@"user info: %@", result);
        } else {
            // An error occurred, we need to handle the error
            // See: https://developers.facebook.com/docs/ios/errors
        }
          }];

According to facebook , 根据facebook

  • Any permissions other then "user_friends", "public_profile" and "email" require Facebook app review . 除“ user_friends”,“ public_profile”和“ email”以外的任何权限都需要Facebook应用程序审查
  • Although If you login with administrators's account , you will get all the information you need for development purposes. 尽管如果使用管理员帐户登录,您将获得开发所需的所有信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用最新的Facebook SDK从iOS中的Facebook API获取用户的生日? - How to fetch user's birthday from Facebook API in iOS using latest Facebook sdk? 我无法获得Facebook用户生日 - I can't get Facebook user birthday 我如何在Ios SDK中在Facebook上获得好友生日和用户生日 - How can i get Friends Birthday and User Birthday on facebook in Ios sdk 使用Graph API的iOS弃用的权限-facebook朋友生日 - iOS -deprecated permission-facebook friends birthday using Graph API 获取Facebook用户朋友生日 - get facebook user friends birthday 在Facebook graph API 2.1中仅选择生日 - Select only birthday in Facebook graph API 2.1 如何使用Facebook Graph API和facebook ios sdk获取完整的User对象? - How do I get the full User object using Facebook Graph API and facebook ios sdk? Facebook Graph API v2.3 查询@"me/taggable_friends" 提供所有没有生日的朋友的详细信息。 如何获取朋友生日的详细信息? - Facebook Graph API v2.3 query @"me/taggable_friends" give details of all friends without birthday . how to get friends details with their birthday? 在 Swift 5 中使用 Graph API 显示用户的 Facebook 图片 - Showing a user's Facebook Picture using Graph API in Swift 5 我们可以定期调用Facebook Graph Api吗? - Can we periodically call Facebook Graph Api?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM