Automatically get user profile photos with Gravatar

One problem with email signup is that you can’t automatically pull a profile picture to assign for the user. The service Gravatar solves that problem (it’s what is used in this forum) by assigning a master profile photo and allowing it to be accessed with just an email address.

With the API Connector, it’s now possible to get Gravatar profile photos automatically in your app! Here’s the process.

  1. Send a POST request to: http://dighash.com/md5/encrypt?k=[youruseremai]l&l=32 (replacing ‘youruseremail’ with the dynamic email address captured after signup. This will return the code that you can use in Gravatar.

  2. Once you get that code, save it to the user and now you can set the user’s profile photo by ‘making changes to user’ and setting their photo to “https://www.gravatar.com/avatar/[Code Generated in Step 1].jpg”"

More details here: https://en.gravatar.com/site/implement/images/ and http://dighash.com/md5/api

4 Likes

Did you have any issues when setting up the API connector? I’m getting the following.

Here’s my setup. Does this look correct?

I finally got this to work using a different approach - if anyone’s interested I can post the steps.

@john3 You should make it a plugin!

1 Like

Great idea, I’ll check it out :slight_smile:

2 Likes