How to show a users photo?

In some web apps they are able to show the users photo when they login. What is the best way to do that? Is it Gravatar - Globally Recognized Avatars or are there other services that can do it?

Thanks

Gravitar is the most common way however, if you use social sign-in/register you can get the users avatar from networks like Google and Facebook using their APIs right when the user registers. I personally use Google since most people have a Google profile picture. Not everyone has a proper gravatar set up.

Google: Integrating Google Sign-In into your web app
FB: Web - Facebook Login - Documentation - Facebook for Developers

1 Like

Thanks. We have Facebook and google login so it should not be much work to pull in the image.