0

I tried to get facebook contacts birthday details..But unfortunetely i couldn't able to retrieve.It saying to give permission..But i have added permission already in it..

I can able to get my friends name but not birthday date.

how can i get my friends birthday date !

private static final String[] PERMISSIONS =
new String[] {"friends_birthday","read_stream", "offline_access"};

link 1

Community
  • 1
  • 1
GK_
  • 1,212
  • 1
  • 12
  • 26

1 Answers1

0

Use the OpenGraph API in whatever environment you use to retrieve the information. The birthday is in the user information object, see docs: http://developers.facebook.com/docs/reference/api/user

see this link too.

Also check your date format is correct is not ?

the correct date format to be used is

SimpleDateFormat formatter = new SimpleDateFormat("MM/dd");

Are you getting null for all birthdays or just some?

Some birthdays will be null, since some FB users have chosen not specify their birthday.

Community
  • 1
  • 1
Shruti
  • 1
  • 13
  • 55
  • 95