我正在尝试根据他朋友的性别和pic_big!=NULL
(每个朋友都应该有一张大的个人资料图片)来获取用户的朋友(登录到他的 Facebook 帐户)。
下面是我正在编写的代码。
NSString *queryString = [NSString stringWithFormat:@"%@%@%@%@%@%@%i%@%@",
@"SELECT name, pic_big, sex, uid FROM user ",
@"WHERE sex=", @"male", @" AND ",
@"pic_big != 'null' AND uid IN (SELECT uid2 ",
@"FROM friend WHERE uid ", loggedInID, @" )",
@"ORDER BY name"];
NSMutableDictionary *dictionary=[NSMutableDictionary
dictionaryWithObjectsAndKeys:queryString,@"query", nil];
[FBRequest getRequestWithParams:dictionary
httpMethod:@"GET"
delegate:self
requestURL:@"fql.query"];
loggedINiD
是用户的登录 ID。我在委托方法中没有得到任何响应。我确定我需要重新检查这个 SQL 查询。请有任何建议。