I am trying to use the Facebook API that provides first_name
, last_name
, gender
, email
, birthday
for signup on my website. I used the Graph API and generated an access token with necessary scope.
I tried on my personal account in which I created the app and it returned the fields properly, but for FB test user and friend's account, it returns email and birthday as "undefined". In graph.facebook.com it shows the following error for a friend's account.
Facebook returns email id for my friend's same account on doulingo.
Am I setting the permissions incorrectly or is there any other problem ?