我无法获取个人资料照片。任何想法?
# Some part from config.yml
hwi_oauth:
firewall_names: [secured_area]
resource_owners:
vkontakte:
type: vkontakte
client_id: <client_id>
client_secret: <client_secret>
scope: "photo_50,email"
...
当我使用vk按钮登录网站时,我获得了所有其他标准参数。如:first_name,last_name,email,vk id等。 字段“photo_50”=&gt;空值 响应截图
答案 0 :(得分:0)
您需要在app/config/config.yml
:
hwi_oauth:
resource_owners:
vkontakte:
type: vkontakte
client_id: %id%
client_secret: %secret%
scope: "email"
paths:
profilepicture: response.0.photo_big
options:
fields: "photo_big"