I’m using the following to get the Facebook username:
[facebook requestWithGraphPath:@"me" andDelegate:facebook];
from my understanding I then have to use something like the following request to
- (void)request:(FBRequest *)request didLoad:(id)result {
NSLog(@"Result: %@", result);
NSDictionary *userInfo = (NSDictionary *)result;
userName = [userInfo objectForKey:@"name"];
fb_id = [userInfo objectForKey:@"id"];
}
my question is how do I call this request method from another method?
thanks for any help
check my function below to fetch user data id,pic and name
and in the delegate method you will log the name like this