2013-01-15 35 views
1

即时搜索,没有得到这个问题就迎刃而解了......我想要得到一个FQL的reciptients选择,其中有2个用户的对话,如:FQL选择recipients.Length = 2

SELECT recipients, folder_id FROM thread WHERE folder_id = 0 and ({MeId} in recipients) and ({FriendId} in recipients) and recipients.Length = 2 

SELECT recipients, folder_id FROM thread WHERE folder_id = 0 and ({MeId} in recipients) and ({FriendId} in recipients) and recipients.Count = 2 

但是,即使有超过2个人,我总是会回复与用户的所有对话线程

也许计数或长度不正确,简单的错误?没有错误,但结果不是我怀疑...希望有人可以帮助

回答

1

FQL没有本地countlength方法。做到这一点的唯一方法是返回所有结果,并在脚本中过滤掉不需要的结果。