# How to get facebook profile picture

**URL:** <https://forum.keycloak.org/t/how-to-get-facebook-profile-picture/3620>\
**Category:** Getting advice\
**Created:** [July 3, 2020, 5:34pm UTC](https://forum.keycloak.org/t/how-to-get-facebook-profile-picture/3620 "2020-07-03T17:34:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dakkafex](https://avatars.discourse-cdn.com/v4/letter/d/4da419/32.png) [@dakkafex](https://forum.keycloak.org/u/dakkafex)\
**Post date:** [July 3, 2020, 5:34pm UTC](https://forum.keycloak.org/t/how-to-get-facebook-profile-picture/3620/1 "2020-07-03T17:34:43Z")

</div>

How do i get KC to set a new users profile picture automatically when they use facebook as provider?

---

<div class="post-metadata">

**Author:** ![dakkafex](https://avatars.discourse-cdn.com/v4/letter/d/4da419/32.png) [@dakkafex](https://forum.keycloak.org/u/dakkafex)\
**Post date:** [July 15, 2020, 4:20pm UTC](https://forum.keycloak.org/t/how-to-get-facebook-profile-picture/3620/2 "2020-07-15T16:20:04Z")

</div>

anyone?  
Ive tried using the exact path from their api, but im getting nothing

---

<div class="post-metadata">

**Author:** ![ulrich](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/ulrich/32/3310_2.png) [@ulrich](https://forum.keycloak.org/u/ulrich)\
**Post date:** [October 25, 2021, 10:51am UTC](https://forum.keycloak.org/t/how-to-get-facebook-profile-picture/3620/3 "2021-10-25T10:51:11Z")

</div>

Did anyone found how to pick up the picture URL from the Facebook identity provider connector ? I tried by set the “picture” value in the field : Identity Providers → facebook → Additional user’s profile fields → picture.

But I cannot see any Picture field displayed in the form used to complete the user profile. Do I need to use a mapper or something like that?

Thank you,

---

<div class="post-metadata">

**Author:** ![ulrich](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/ulrich/32/3310_2.png) [@ulrich](https://forum.keycloak.org/u/ulrich)\
**Post date:** [October 26, 2021, 9:10am UTC](https://forum.keycloak.org/t/how-to-get-facebook-profile-picture/3620/4 "2021-10-26T09:10:25Z")

</div>

For anyone which could be interested by the response we found how to pick up the user picture from Facebook Graph API.

1. Identity Providers → facebook → Settings → Additional user’s profile fields = picture
2. Identity Providers → facebook → Mappers Create
3. Identity Providers → facebook → Mappers → name = picture
4. Identity Providers → facebook → Mappers → Sync Mode Override = inherit
5. Identity Providers → facebook → Mappers → Mapper Type = Attribute Importer
6. Identity Providers → facebook → Mappers → Social Profile JSON Field Path = picture.data.url
7. Identity Providers → facebook → Mappers → User Attribute Name = picture

---

<div class="post-metadata">

**Author:** ![DmitriyNoa](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dmitriynoa/32/7286_2.png) [@DmitriyNoa](https://forum.keycloak.org/u/DmitriyNoa)\
**Post date:** [December 20, 2022, 8:45pm UTC](https://forum.keycloak.org/t/how-to-get-facebook-profile-picture/3620/5 "2022-12-20T20:45:17Z")

</div>

@ulrich Thanks for the hint. Do you know how to add picture parameters to the mapper? E.g. type=large

---

<div class="post-metadata">

**Author:** ![ulrich](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/ulrich/32/3310_2.png) [@ulrich](https://forum.keycloak.org/u/ulrich)\
**Post date:** [January 10, 2023, 12:51pm UTC](https://forum.keycloak.org/t/how-to-get-facebook-profile-picture/3620/6 "2023-01-10T12:51:54Z")

</div>

Sorry for the delay. No I don’t.

Did you find the response, it could be interesting to share it.

Thanks,

---

<div class="post-metadata">

**Author:** ![DmitriyNoa](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dmitriynoa/32/7286_2.png) [@DmitriyNoa](https://forum.keycloak.org/u/DmitriyNoa)\
**Post date:** [January 10, 2023, 1:07pm UTC](https://forum.keycloak.org/t/how-to-get-facebook-profile-picture/3620/7 "2023-01-10T13:07:35Z")

</div>

Not yet unfortunately
