I was successful in retrieving user's basic profile, but I want to fetch birthday as well. How can I make this to work? Check my codes:
<script src="https://apis.google.com/js/platform.js" async defer></script>
<meta name="google-signin-client_id" content="XXXXXXXXXXXXXX">
<script>
function onSignIn(googleUser) {
var profile = googleUser.getBasicProfile();
console.log('ID: ' + profile.getId());
console.log('Name: ' + profile.getName());
console.log('Image URL: ' + profile.getImageUrl());
console.log('Email: ' + profile.getEmail());
});
}
</script>
<div class="g-signin2" data-onsuccess="onSignIn"></div>