简体   繁体   中英

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

I am trying to get birth of date of logged-in facebook user . i tried the code mentioned on facebook developer website , but still i didn't got birthday date .

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 ,

  • Any permissions other then "user_friends", "public_profile" and "email" require Facebook app review .
  • Although If you login with administrators's account , you will get all the information you need for development purposes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM