用户,事件和组都可以在照片中标记。在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]
显然这是"by design"!
Facebook的回应:https://developers.facebook.com/bugs/549553255066877这是经过设计的,在您有了主题列表之后,您可以查询用户表以查看该主题是否是用户。