Your application must first use the required permissions, for example,
user_birthday, friends_birthday, user_location , friends_location...
(for additional permissions)
Get current user information:
FB.api('/me', function(response) {
Get information about current friends of users:
FB.api('/me/friends', function(response) {
You will get an answer like:
{data: [{id: "FRIEND1_ID", name: "FRIEND1_NAME"}, {id: "FRIEND2_ID", name: "FRIEND2_NAME"}]....}
If you want to get additional properties of your friends, use the FIELDS parameter, for example
FB.api('/me/friends', {fields: 'name,id,location,birthday'}, function(response) {
If you want to get information about another user:
FB.api('/FRIEND1_ID', function(response) {
Try Sample Site