sabyasachibiswal / angular5-social-login

Social authentication module for Angular 5. Includes Facebook and Google login with AOT compatibility.
40 stars 74 forks source link

Cannot request custom fields for Facebook Auth #7

Closed ronnykwon closed 5 months ago

ronnykwon commented 6 years ago

Cannot customize the requested field from Facebook. I would like to retrieve the birthday, gender and other fields but for now it seems that it's limited to name, email

stevemurch commented 6 years ago

By default, Facebook limits what you can get with the default permissions. You'll need to customize the FB.Login call that you can find in the angular5-social-login.umd.js file. In the case of birthday, for instance, you'll need to add user_birthday to the list of scope CSV items, and then add "birthday" to the list of /me GET requests. Note that as of this writing, the SDK that this particular angular component uses is a few versions old, and you'll have to submit your FB app for review before login is shown without warning.

sabyasachibiswal commented 5 months ago

Thanks @stevemurch