Search code examples
pythondjangopython-social-auth

How can i get keys of SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS?


I'm using django1.9 with python-social-auth.

And I want to implement a user's login with Facebook account. Then I want to get information like their gender / age / location / job etc..

How can I get key names which I should set to SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS ?

thanks


Solution

  • Here is the field list:

    https://developers.facebook.com/docs/graph-api/reference/user/

    I use some of them:

    SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {
        'fields': 'id,name,email,gender,about,birthday,first_name,hometown', 
    }