title: PHP: Assign avatar of the webmail server used
body: <p>I'm doing a website for registration, in which I want to assign the webmail server avatar image used by the user (gmail, hotmail, etc). For example using gravatar realize managed as follows:</p>
  
  <pre><code>&lt;img src="http://www.gravatar.com/avatar/&lt;?php print md5(strtolower(trim('email')))?&gt;?d=imagendefault.jpg&amp;s=150" /&gt;
  </code></pre>
  
  <p>I know that for gmail emails, I can use The Google Contacts API for Contact photo management toretrieve a contact's photo, send an authorized GET request to the contact's photo link URL.
  The URL is of the form:</p>
  
  <pre><code>https://www.google.com/m8/feeds/photos/media/{userEmail}/{contactId}
  </code></pre>
  
  <p>But I'm not sure what is the parameter 'contactid'. My question is .. there is some method to get the profile picture of live / msn / outlook / hotmail and gmail? and how I can know that it's contactid to do with Gmail. Or if there is any easier method where you do not have to copy the image directly to my server. Thanks a lot.</p>