Facebook Api does not return date of birth

I am using Facebook api to login and grab some user data like first name, last name etc.

 function apilogin() {
console.log('Welcome!  Fetching your information.... ');
FB.api('me/','GET',{fields:'first_name,last_name,email,birthday'}, function(response) {
  console.log('Successful login for: ' + response.first_name);
  document.getElementById('status').innerHTML =
    '<br>Nome: ' + response.first_name + '<br>Sobrenome: '+response.last_name + '<br>email: '+response.email+'<br>Data nascimento: '+response.birthday;
});


<div class="fb-login-button" data-max-rows="2" data-size="large" data-show-faces="false" data-auto-logout-link="false" scope="email,public_profile,user_birthday" onlogin='checkLoginState();' auth-type="rerequest">login com o facebook</div>

I have defined all the necessary permissions and parameters, but it only returns the date when I immediately on facebook where I created the application, I would like to know if it is necessary some configuration in the application, or if it is lack of a syntax specifies at least.

Author: BrTkCa, 2016-12-17

1 answers

The only information that the Graph API provides without analysis is the public profile, the others need to undergo a Facebook analysis, and if approved, the app will be allowed to obtain the other requested information - probably for this reason you are not able to obtain the date of birth.

If your app requests this permission, Facebook will have to analyze how your application uses it.

When submitting for analysis, either clear with regard to the reason for age_range not be enough for your use case.

In test scenario, the app administrator can enter facebook accounts (users), such as Test user.

Birthday reference . It's worth noting that most integrations will only need the age_range that comes with the public_profile permission.

 2
Author: BrTkCa, 2016-12-18 00:22:31