I am performing a facebook people search graph request like so:
-(void)searchFBFor:(NSString*)query {
NSString *q = [NSString stringWithFormat:@"search?q=%@&type=user", [query stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
NSLog(@"%@", q);
[FBRequestConnection startWithGraphPath:q
completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
if(error) {
NSLog(@"Error: %@", error);
return;
}
else {
NSLog(@"%@", result);
}
}];
}
The request works and returns results if my query is something like @"mark" but there are never results for a first and last name (ie. @"mark+smith" OR @"mark smith").
Does anyone know why this may be? Is it possible that I need special permissions I have not considered?
Many thanks.