-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to 17.0.0 #58
Update to 17.0.0 #58
Conversation
@britzl could you pls test one thing pls on ios?
|
@britzl now it's ready for review |
a bit of context for the future: Now there are two types of login Also, all the data was requested with permissions will be available in ObjC example: FBSDKLoginManager *loginManager = [FBSDKLoginManager new];
FBSDKLoginConfiguration *configuration =
[[FBSDKLoginConfiguration alloc] initWithPermissions:@[@"email", @"user_friends", @"user_birthday", @"user_age_range", @"user_hometown", @"user_location", @"user_gender", @"user_link"]
tracking:FBSDKLoginTrackingLimited
nonce:@"123"];
[loginManager logInFromViewController:self
configuration:configuration
completion:^(FBSDKLoginManagerLoginResult * result, NSError *error) {
if (!error && !result.isCancelled) {
// Login successful
// getting user ID
NSString *userID =
FBSDKProfile.currentProfile.userID;
// getting id token string
NSString *idTokenString =
FBSDKAuthenticationToken.currentAuthenticationToken.tokenString;
// fetching pre-populated email
NSString *email = FBSDKProfile.currentProfile.email;
// getting pre-populated friends list
NSArray<FBSDKUserIdentifier *> *friendIDs = FBSDKProfile.currentProfile.friendIDs;
// getting pre-populated user birthday
NSDate *birthday = FBSDKProfile.currentProfile.birthday;
// getting pre-populated age range
FBSDKUserAgeRange *ageRange = FBSDKProfile.currentProfile.ageRange;
// getting pre-populated age range
FBSDKLocation *hometown = FBSDKProfile.currentProfile.hometown;
// getting pre-populated age range
FBSDKLocation *location = FBSDKProfile.currentProfile.location;
// getting pre-populated age range
NSString *gender = FBSDKProfile.currentProfile.gender;
// getting pre-populated age range
NSURL *userLink = FBSDKProfile.currentProfile.linkURL;
}
}]; What's done:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
fix #57