문제

How i can get the correct User Data from Facebook Connect like a Profile Picture (Currently return null), First Name and Last Name (Seems that now is implent only Full name)?

도움이 되었습니까?

해결책

In overall it's quite easy and requires just some adjustments in config.yml:

hwi_oauth:
    firewall_name:         secured_area
    resource_owners:
        facebook:
            type:          facebook
            client_id:     <client_id>
            client_secret: <client_secret>
            infos_url:     "https://graph.facebook.com/me?fields=username,name,picture.type(square)"
            paths:
                profilepicture: picture.data.url

More details can be found in documentation.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top