3

我正在尝试使用 fb connect for iphone 获取用户朋友的列表。

我已经尝试了以下两个 FQL 查询,但它们似乎没有返回任何内容。

如果有的话,哪一个是正确的?

NSString* fql = [NSString stringWithFormat:@"select flid,name from friendlist where owner=%lld",[self fbSession].uid]; 

或者

NSString* fql = [NSString stringWithFormat:@"SELECT flid,uid FROM friendlist_member WHERE flid IN (SELECT flid FROM friendlist WHERE owner=%lld)",[self fbSession].uid];
4

1 回答 1

6

啊……想通了……

NSString* fql = [NSString stringWithFormat:@"SELECT name,uid FROM user WHERE uid IN ( SELECT uid2 FROM friend WHERE uid1=%lld )",[self fbSession].uid];
于 2009-11-07T06:53:58.737 回答