How to get friend's birthday list using facebook api?

I am trying to get friend birthday list.

But how to find using my api I dont know.


Solution 1:

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

Solution 2:

You can also use facebook api :

$friends_birthday = $facebook->api("/me/friends?fields=id,name,birthday");

you must also have permission friends_birthday in the scope of your app