I set up Facebook login and successfully get things like first_name, emailetc. However, I cannot figure out how to get a birthday. If I call birthday, as shown below, nothing returns.
FB.api('/me', {fields: 'birthday'}, function(response) {
console.log(JSON.stringify(response));
})
If I call user_birthday, as shown below, I get this error:"error":{"message":"(#100) Tried accessing nonexisting field (user_birthday)
FB.api('/me', {fields: 'user_birthday'}, function(response) {
console.log(JSON.stringify(response));
})
How to do it?
source
share