[keycloak-user] Facebook "picture" / additional scopes access

Marek Posolda mposolda at redhat.com
Thu Jul 27 06:51:25 EDT 2017


Rather looks like Facebook issue than Keycloak issue? I guess if you 
look at Facebook documentation around their supported scopes, it may help?

Marek

On 26/07/17 04:16, Scott Dunbar wrote:
> Sorry - mailing list question etiquette 101 violated - this is with
> "Keycloak 3.2.0.Final (WildFly Core 2.0.10.Final)" under Ubuntu with
> 1.8.0_131 JVM.
>
> On Tue, Jul 25, 2017 at 8:11 PM, Scott Dunbar <scott at xigole.com> wrote:
>
>> Hi all,
>> I've not dealt with a Facebook integration in a while and am ultimately
>> trying to get the "picture" attribute of a Facebook user.  However, while I
>> see the code in
>> https://github.com/keycloak/keycloak/blob/2aa93d7d55869e3d262bef198e1059
>> f42b7fa0f6/services/src/main/java/org/keycloak/social/facebook/
>> FacebookIdentityProvider.java that asks for some fields it is unclear how
>> I add "picture" via the admin console in "Identity Providers -> Facebook ->
>> Default Scopes".  If I put the word "picture" in "Default Scopes" I get an
>> error from Facebook:
>>
>> "Unsupported scope: 'picture'. Supported scopes: ads_management ads_read
>> email offline_access user_friends"
>>
>> I've tried "public_profile" and, while it doesn't give an error, it does
>> not return what I'm looking for:
>>
>> 2017-07-25 20:06:27,595 DEBUG [org.keycloak.social.user_profile_dump]
>> (default task-84) User Profile JSON Data for provider facebook:
>> {"id":"1234567890","name":"Scott Dunbar","first_name":"Scott","
>> last_name":"Dunbar"}
>>
>> I'm obviously missing something - how do I add some "scopes" to what is
>> requested from Facebook?
>>
>> Thanks for any help.  I'll be doing the same for at least the Google
>> adapter next - any hints there?
>>
>>
>> --
>> Scott Dunbar
>>
>>
>



More information about the keycloak-user mailing list