0
PFTwitterUtils的logInWithBlock方法總是返回userId爲nil。 任何想法,爲什麼這可能會發生?PFTwitterUtils logInWithBlock對於userId總是返回nil
我使用parse.com版本:1.7.2
[PFTwitterUtils logInWithBlock:^(PFUser *user, NSError *error) {
if (!user) {
NSLog(@"Uh oh. The user cancelled the Twitter login.");
return;
} else if (user.isNew) {
NSLog(@"User signed up and logged in with Twitter!");
if([PFTwitterUtils isLinkedWithUser:user]){
NSLog(@"userID %@", [PFTwitterUtils twitter].userId);
}
//...
} else {
NSLog(@"User logged in with Twitter!");
}
}];