I am trying to get friend birthday list.
But how to find using my api I dont know.
Note: This is no longer possible. See this answer.
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
Since v2.0 of the Graph API, it´s not possible to get friend birthdays anymore. You can only get the birthday of the authorized user by using the user_birthday
permission. See the changelog for more information: https://developers.facebook.com/docs/apps/changelog
There is only one other possibility: If the friend authorized the App with user_birthday
, you can get his birthday with the following call: /friend-id?fields=birthday
Of course you need to authorize users with user_friends
too, in order to make this work. And you can also just store the birthday of all authorized users and don´t waste an extra API call on it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With