开发者

Getting 10 friends from friend-list problem in fbconnect problem

开发者 https://www.devze.com 2023-01-09 11:56 出处:网络
I am trying to fetch 10 friends list using fbconnect my query is like this, NSString* fql = [NSString stringWithFormat:@\"select uid from user where uid == %lld LIMIT 1,10\", _session.uid];

I am trying to fetch 10 friends list using fbconnect my query is like this,

NSString* fql = [NSString stringWithFormat:@"select uid from user where uid == %lld LIMIT 1,10", _session.uid];

NSDictionary* params = [NSDictionary dictionaryWithObject:fql forKey:@"query"];

[FBRequest requestWithDelegate:self] call:@"facebook.friends.get" params:params];

But it's fetching开发者_JAVA技巧 all the friends list, Anyone help me....


NSString* fql =[NSString stringWithFormat:@"SELECT uid,name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = %lld) LIMIT 1,10",_session.uid]; 

NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                fql, @"query",
                                nil];

[_facebook requestWithMethodName: @"fql.query" 
                       andParams: params
                   andHttpMethod: @"POST" 
                     andDelegate: self]; 
0

精彩评论

暂无评论...
验证码 换一张
取 消