Ios 执行FQLRequest时出错
我在视图控制器中通过特定方法执行FQL请求。 这是我的要求Ios 执行FQLRequest时出错,ios,facebook,facebook-fql,fbrequest-form,Ios,Facebook,Facebook Fql,Fbrequest Form,我在视图控制器中通过特定方法执行FQL请求。 这是我的要求 NSString* fql = [[NSString alloc] init]; fql = [NSString stringWithFormat:@"SELECT uid, name FROM user WHERE uid IN(SELECT uid FROM event_member WHERE eid= %@) AND sex='female'", event_id]; NSMutableDictionary* para
NSString* fql = [[NSString alloc] init];
fql = [NSString stringWithFormat:@"SELECT uid, name FROM user WHERE uid IN(SELECT uid FROM event_member WHERE eid= %@) AND sex='female'", event_id];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObject:fql forKey:@"query"];
[[Facebook shared] requestWithMethodName:@"fql.query" andParams:params andHttpMethod:@"POST" andDelegate: self];
[fql release];
但是,当我第二次启动请求时,在使用NSZombieEnabled时出现了错误:
-[CFString release]:消息发送到解除分配的实例0x4cb9ec0
线程指向FBRequest.m中的[\u参数释放]
尝试使用更改请求时
fql = @"SELECT uid, name, sex FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND sex = 'male'";
我不再犯这个错误了
以下是fbrequest委托方法
- (void)request:(FBRequest *)request didReceiveResponse:(NSURLResponse *)response {
NSLog(@"FBRequestDelegate Received response");
}
- (void)request:(FBRequest *)request didLoad:(id)result {
NSLog(@"FBRequestDidLoad Received response");
self.allListProfils = result;
NSLog(@"all listprofil :%@", allListProfils);
[self resetSearch];
[DSBezelActivityView removeViewAnimated:YES];
moreButton.hidden = NO;
[table reloadData];
};
- (void)request:(FBRequest *)request didFailWithError:(NSError *)error {
NSLog(@"FBRequestDidFailWithError Received response, Error is : %@",[error description]);
};
这对你们中的一些人来说有什么意义吗
谢谢:)