# Retrieve avatar automatically from Google/Facebook/X

**URL:** <https://meta.discourse.org/t/retrieve-avatar-automatically-from-google-facebook-x/11879>\
**Category:** Feature\
**Tags:** pr-welcome\
**Created:** [January 10, 2014, 8:39pm UTC](https://meta.discourse.org/t/retrieve-avatar-automatically-from-google-facebook-x/11879 "2014-01-10T20:39:19Z")\
**Posts on this page:** 9\
**Page:** 1

## AI-generated summary

The discussion revolves around the feature request to automatically retrieve avatars from social media platforms like Google, Facebook, and Twitter when users sign up via these accounts. [peter_imai](/t/-/11879/1) initiates the topic, noting that despite signing up with Google, they were assigned a default avatar instead of their Google profile picture. [codinghorror](/t/-/11879/2) clarifies that Discourse currently does not support automatic avatar retrieval from these platforms, though they welcome pull requests for such a feature. [Greg_Swallow](/t/-/11879/5) provides technical insight, explaining that if a user authenticates via Facebook, their Facebook ID is stored and their profile picture can be accessed via the Facebook Graph API. [TheLoneCuber](/t/-/11879/6) strongly advocates for this feature, calling it a natural extension of social logins. [riking](/t/-/11879/7) offers implementation tips, such as adding options to the avatar change modal for social account linking. [ChrisBeach](/t/-/11879/8) supports the idea, emphasizing the value of pulling avatars from Twitter, Google, and Facebook.

<div class="post-metadata">

**Author:** ![peter\_imai](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peter_imai/32/122451_2.png) [@peter\_imai](https://meta.discourse.org/u/peter_imai)\
**Post date:** [January 10, 2014, 8:39pm UTC](https://meta.discourse.org/t/retrieve-avatar-automatically-from-google-facebook-x/11879/1 "2014-01-10T20:39:19Z")

</div>

Definitely a somewhat frivolous question:

I just signed up with my google ID, but was given this geometric pattern as an avatar instead of my normal profile pic associated with my google account. Any reason for this or plan to change this?

Very excited for Discourse!

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [January 10, 2014, 8:51pm UTC](https://meta.discourse.org/t/retrieve-avatar-automatically-from-google-facebook-x/11879/2 "2014-01-10T20:51:07Z")

</div>

We don’t have plans to automatically retrieve avatars from Twitter, Facebook, G+ etc at this time.

What we do offer is standard Gravatar (email) avatar support as well as custom local avatars.

---

<div class="post-metadata">

**Author:** ![peter\_imai](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peter_imai/32/122451_2.png) [@peter\_imai](https://meta.discourse.org/u/peter_imai)\
**Post date:** [January 10, 2014, 10:57pm UTC](https://meta.discourse.org/t/retrieve-avatar-automatically-from-google-facebook-x/11879/3 "2014-01-10T22:57:56Z")

</div>

ok thanks @codinghorror

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [January 10, 2014, 11:17pm UTC](https://meta.discourse.org/t/retrieve-avatar-automatically-from-google-facebook-x/11879/4 "2014-01-10T23:17:23Z")

</div>

However, if someone wants to submit that as a community contributed PR that would be great!

---

<div class="post-metadata">

**Author:** ![Greg\_Swallow](https://avatars.discourse-cdn.com/v4/letter/g/7ea924/32.png) [@Greg\_Swallow](https://meta.discourse.org/u/Greg_Swallow)\
**Post date:** [May 31, 2014, 7:17am UTC](https://meta.discourse.org/t/retrieve-avatar-automatically-from-google-facebook-x/11879/5 "2014-05-31T07:17:52Z")

</div>

If a discourse user authenticates with Facebook, does their Facebook user ID get saved in the database?

If so, their profile picture can be found at this URL:

```
http://graph.facebook.com/USERID/picture?type=small

```

eg - [http://graph.facebook.com/zuck/picture?type=small](http://graph.facebook.com/zuck/picture?type=small)

edit - or actually, to make it square & 50x50  
[http://graph.facebook.com/zuck/picture?type=square](http://graph.facebook.com/zuck/picture?type=square)  
(You are supposed to be able to add &height=45&width=45 but it seems that the smallest it will resize to is 48 pixels)

More info here - [https://developers.facebook.com/docs/graph-api/reference/v2.0/user/picture](https://developers.facebook.com/docs/graph-api/reference/v2.0/user/picture)

---

<div class="post-metadata">

**Author:** ![TheLoneCuber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thelonecuber/32/114988_2.png) [@TheLoneCuber](https://meta.discourse.org/u/TheLoneCuber)\
**Post date:** [October 28, 2014, 1:42am UTC](https://meta.discourse.org/t/retrieve-avatar-automatically-from-google-facebook-x/11879/6 "2014-10-28T01:42:23Z")

</div>

Come on someone [with the skills to do it]… PR Social Avatars **please**. I’m surprised they’re not a part of Discourse: the friction-free social logins seem such a contradiction given that users then have to manually upload a profile picture, even though they have one set for the social login they’ve just used. It’s such a confusing prospect for Joe and Jane Public who are not forum frequenters.

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [October 28, 2014, 1:53am UTC](https://meta.discourse.org/t/retrieve-avatar-automatically-from-google-facebook-x/11879/7 "2014-10-28T01:53:59Z")

</div>

Tips for the implementers:

1. Add more options to the avatar changing modal dialog (titled “Change your avatar”)
2. Pull the ‘Associated accounts’ records (example is on the admin user page, these should be visible to the user somewhere)

---

<div class="post-metadata">

**Author:** ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)\
**Post date:** [May 17, 2016, 11:10am UTC](https://meta.discourse.org/t/retrieve-avatar-automatically-from-google-facebook-x/11879/8 "2016-05-17T11:10:50Z")

</div>

+1 for automatically pulling avatars from Facebook / Google / Twitter.

---

<div class="post-metadata">

**Author:** ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)\
**Post date:** [December 4, 2025, 11:09am UTC](https://meta.discourse.org/t/retrieve-avatar-automatically-from-google-facebook-x/11879/9 "2025-12-04T11:09:21Z")

</div>

Archived on December 4, 2025, 11:09am UTC


