Home
Do you use Gravatar for your profile pictures?
  v3.0 Posted at 5/05/2015 3:30 AM by Tiago Araujo

​To keep profile management simple and make it easier for users to have a consistent experience across applications, you should use Gravatar for showing profile images in your application.

Your Gravatar is an image that follows you from site to site appearing beside your name when you do things like comment or post on a blog.

It is simple to set up and if you are developing an MVC application, there are even several Nuget packages to make your life easier. The GravatarHelper is recommended.

Usage: 

@Html.GravatarImage("MyEmailAddress@example.com", 80, new { Title = "My Gravatar", Alt = "Gravatar" })

Also, check out the Gravatar API docu​mentation for all the options available.

The below short video shows how to get up and running with Gravatar in your ASP.NET MVC application. 

 


Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address:

    Comments: