How to get Facebook Friends Birthdays in order of upcoming like: show top on list those birthdays are coming next by using current date and so on.
still i am getting birthdays in form of January to December, Getting Friends on Top those birthdays in January and on bottom those birthdays in December.
and i am also getting friends on top those birthdays has gone in January like birthday was on 2nd Jan or 28 Jan,
Now i just want to see list of Next Upcoming Birthdays,those passed away on bottom of the list...
Like here:
https://itunes.apple.com/in/app/birthday-sweet-birthday-calendar/id367346406?mt=8
https://play.google.com/store/apps/details?id=com.scoompa.birthdayreminder&hl=en
they have shown recents on top and later on bottom in a List...
Still i am using this query :
String query = "select name, birthday, uid, pic_square from user where uid in (select uid2 from friend where uid1=me()) order by birthday_date";
Also Tried with this code:
Calendar c = Calendar.getInstance();
int month = c.get(Calendar.MONTH)+1;
String query = "select name, birthday, uid, pic_square from user where uid in " +
"(select uid2 from friend where uid1=me())AND birthday_date >= '" + month + "/01' AND birthday_date <= '" + month + "/31' ORDER BY birthday_date ASC";