我正在尝试创建一个 FQL 查询,该查询返回与当前用户一起出现在所有公共照片中的所有用户。这是我到目前为止所拥有的:
select uid from user where uid in (
select subject from photo_tag where pid in (
select pid from photo where pid in (
select pid from photo_tag where subject=me()
)
)
) and uid in (
select uid2 from friend where uid1=me()
)
这可行,但我还想获得这些用户与当前用户一起出现在照片中的次数。理论上,以下查询应该有效:
select subject from photo_tag where pid in (
select pid from photo where pid in (
select pid from photo_tag where subject=me()
)
) and subject in (
select uid2 from friend where uid1=me()
)
但它总是返回一个空数据集。我能得到一些关于我哪里出错的建议,以便我可以解决这个问题吗?