用户,活动和群组都可以tagged in a photo。在photo_tag的可用字段中,您无法区分哪个主题ID是用户,事件或组。我想返回我在照片中标记的朋友列表,忽略不是我朋友的事件,群组和用户。
有谁知道为什么会返回0结果?
SELECT subject, xcoord, ycoord, text
FROM photo_tag
WHERE object_id = [PHOTO_OBJECT_ID]
AND subject IN (SELECT uid2 FROM friend WHERE uid1 = me())
即使......
SELECT subject, xcoord, ycoord, text
FROM photo_tag
WHERE object_id = [PHOTO_OBJECT_ID]
返回包含我的朋友的用户列表,由...验证
SELECT uid2 FROM friend where uid1 = me() and uid2 = [SUBJECT_USER_ID]
答案 0 :(得分:0)
显然这是“按设计”!
Facebook的回应:
这是设计上的,在您拥有主题列表后,您可以查询用户表以查看该主题是否是用户。