我正在使用social-auth-app-django来实现与社交网络的登录,但是我正在寻找个人资料信息,例如:照片,电子邮件等!
我已经设置好设置,但无法获取信息!
SOCIAL_AUTH_LINKEDIN_OAUTH2_KEY =''
SOCIAL_AUTH_LINKEDIN_OAUTH2_SECRET = ''
SOCIAL_AUTH_LINKEDIN_OAUTH2_SCOPE = ['r_basicprofile',
'r_emailaddress']
# These fields be requested from linkedin.
SOCIAL_AUTH_LINKEDIN_OAUTH2_FIELD_SELECTORS = [
'email-address',
'picture-url',
]
SOCIAL_AUTH_LINKEDIN_OAUTH2_EXTRA_DATA = [
('id', 'id'),
('firstName', 'first_name'),
('lastName', 'last_name'),
('emailAddress', 'email_address'),
('public-profile-url', 'public_profile_url'),
('pictureUrl', 'picture_url'),
]
这是结果: “ email_address”:空,“ public_profile_url”:空,“ picture_url”:空,
谢谢!