我编写了以下FQL查询,它应该可以工作,但似乎失败了:
SELECT coords, tagged_uids, page_id FROM checkin
WHERE author_uid = IN (SELECT uid2 FROM friend WHERE uid1 = me())
它抛出错误如下:
分析器错误:位置68意外“IN”。
当其他类似语法的查询工作正常时,没有任何意义:
SELECT uid, name, pic_square FROM user
WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me())
任何人都知道从朋友那里获得签到的更好方法吗?
答案 0 :(得分:0)
IN
应该替换=
运算符,而您只需要一个。试试:
SELECT coords, tagged_uids, page_id FROM checkin
WHERE author_uid IN (SELECT uid2 FROM friend WHERE uid1 = me())
另外,请确保您拥有friends_checkins
扩展权限。