Nothing gets printed out in the console, and I don't get any info while using a - (void)request:(FBRequest *)request didLoad:(id)result
either
Basically I would like the user's name, FB username, and FB id. Is there any other way to get this info, since this method does not seem to be working.
- (IBAction)performLogin:(id)sender
{
[self.spinner startAnimating];
GIFAppDelegate* appDelegate = [UIApplication sharedApplication].delegate;
[appDelegate openSession];
FBRequestConnection* conn = [[FBRequestConnection alloc] init];
[conn addRequest:[FBRequest requestForMe] completionHandler:^(FBRequestConnection *connection, NSDictionary<FBGraphUser> *me, NSError *error) {
if(error) {
NSLog(@"Error requesting user info");
return;
}
NSLog(@"User's name is %@", me.name);
}];
}
Note that the rest of the method works, just not the FBRequestConnection portion of it. :)