0

如何获取包含用户 ID、姓名和生日的朋友即将到来的生日列表。我正在使用以下 fql 查询来获取朋友 b'day 列表。

  query = "SELECT uid, name, birthday_date FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me()) ORDER BY birthday_date DESC LIMIT 50 ";
4

1 回答 1

1

将您的 FQL 查询更改为:

SELECT uid, name, birthday_date FROM user
WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me())
AND birthday_date >= "06/08"
AND birthday_date <= "06/15"
ORDER BY birthday_date ASC

这会将日期限制为下周,按下一个可用生日排序。

于 2012-06-08T10:05:55.633 回答