我希望能在Facebook API图上,
我使用Hackbook样本,目前只有5个地方可以检查UITView。
以下方法有一个距离参数, 但我找不到一个要返回的检查位数...
/*
* Graph API: Search query to get nearby location.
*/
- (void)apiGraphSearchPlace:(CLLocation *)location {
[self showActivityIndicator];
currentAPICall = kAPIGraphSearchPlace;
NSString *centerLocation = [[NSString alloc] initWithFormat:@"%f,%f",
location.coordinate.latitude,
location.coordinate.longitude];
HackbookAppDelegate *delegate = (HackbookAppDelegate *)[[UIApplication sharedApplication] delegate];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"place", @"type",
centerLocation, @"center",
@"3000", @"distance",
nil];
[centerLocation release];
[[delegate facebook] requestWithGraphPath:@"search" andParams:params andDelegate:self];
}
如果有人知道该怎么做,请告诉我。
感谢 谢谢