Savory's Gravatar Integration Library
Gravatar is a popular service for managing user avatars and simple profile pages by associating them with email addresses.
It makes users happy, because they can manage their avatars for many, many services in one place. The user's email is hashed so that it is not made publicly available, unless the user chooses to put them explicitly on their profile.
It makes site owners happy, because they can display avatars for users without having to store them or otherwise manage them. Additionally, new users would have their avatar immediately displayed without any effort on their part, and users do not like effort. If you're using the Authentication Module in association with the Registration Module, then you already have an email address for the user, and can immediately fetch their avatar from Gravatar.
Worried about forcing users to use an external service? Then make Gravatar an optional fallback. Provide users with a way to manage avatars on your site directly, and only default to Gravatar.
Refer to the Savory.Gravatar API documentation for more details.
Let's Do It
Just enter an email address, and let the Savory magic happen.
Display Name: Tal Liron
The avatar above is hyperlinked to their Gravatar profile page. And here's the complete JSON dump of their profile:
{
"entry": [
{
"id": "18700310",
"hash": "7051b45f025809089d44da6194b57565",
"requestHash": "7051b45f025809089d44da6194b57565",
"profileUrl": "http://gravatar.com/tliron",
"preferredUsername": "tliron",
"thumbnailUrl": "http://2.gravatar.com/avatar/7051b45f025809089d44da6194b57565",
"photos": [
{
"value": "http://2.gravatar.com/avatar/7051b45f025809089d44da6194b57565",
"type": "thumbnail"
}
],
"profileBackground": {
"color": "#291e1e",
"position": "left",
"repeat": "repeat"
},
"name": {
"givenName": "Tal",
"familyName": "Liron",
"formatted": "Tal Liron"
},
"displayName": "Tal Liron",
"aboutMe": "President of Three Crickets, LLC",
"currentLocation": "Chicago, IL",
"urls": [
{
"value": "http://threecrickets.com/",
"title": "Three Crickets"
}
]
}
]
}

