开发者

How to get friends name in fql

I am executing this query in FQL [@"SELECT likes,message,actor_id FROM stream WHERE source_id = %lld limit 50", _session.uid]. It is giving result well but I want to fetch my friends name also. I don't want to execute query within loop to fetch friends name from their 开发者_如何学JAVAprofile. If it is possible in multiquery then which type of query I will have to write?


I use this code:

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

Hope it can give you a hint.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜