Reputation: 3120
I am trying to implement Facebook auth with Parse SDK as described in officialy manual. But instead of real name I am getting some token when calling [PFUser currentUser]
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:YES];
if ([PFUser currentUser] && [PFFacebookUtils isLinkedWithUser:[PFUser currentUser]]) {
NSLog(@"USER == %@ == IS ALREADY LINKED WITH FACEBOOK", [PFUser currentUser]);
}
}
NSLOG shows me this: USER == Op2Qz1RxiwR1zflsSzCVR538A == IS ALREADY LINKED WITH FACEBOOK
What could be the issue?
Upvotes: 0
Views: 146
Reputation: 77641
In your code you are telling it to log the entire user object. This will probably log something like a unique I'd or something.
If you want the name then you should use...
[PFUser currentUser].userName
Or some other property.
It doesnt know which part of the user to log unless you actually tell it which part you want to log.
Upvotes: 1