我希望通过 iOS 上的 Facebook API Graph 增加签到地点的数量。
我正在使用 Hackbook 示例,目前 UITableView 中只显示了 5 个签到位置。
以下方法有一个距离参数,但我找不到要返回的签到地点数...
/*
* 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];
}
如果有人知道如何做到这一点,请告诉我。
谢谢