# Recuperar avatar automaticamente do Google/Facebook/X

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

<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:** [31 Maio , 2014 07:17 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)

---

_[View the full topic](https://meta.discourse.org/t/retrieve-avatar-automatically-from-google-facebook-x/11879)._
