as per documentation I am able to configure and store Facebook ID to FOSUserBundle Entity User
I want to store birthday and gender also.
app/config/config.yml
hwi_oauth:
firewall_name: secured_area
resource_owners:
facebook:
type: facebook
client_id: <client_id>
client_secret: <client_secret>
scope: "email,user_birthday"
in documentation there is some description Here but I am unable to get it work. as I am beginner here this documentation isn't helpful to me.
where can I get facebook response which contains all local data.
I need to store that data also along with other FOSUserBundle Fields.
Your config would look like this:
Then on your
AccountConnector
service / or how you handle the response you can do something like this:Since Facebook sends nominal values for gender, I have created the
setGender
function.