Displaying the Lync Presence Icon on SharePoint Online(Office 365)/SharePoint 2010/SharePoint 2013

Please refer MSDN to understand more about how to do Profile sync-up between Window Azure and local active directory , steps to configure the platform in order to do Lync Integration.

You can use this below html tree to show Lync presence icon.

$UserEmail: Please pass email id.

ID= can be generated with any unique identifier.
  1. <span class="ms-imnSpan">   
  2.    <a href="#" onclick="IMNImageOnClick(event);return false;" class="ms-imnlink">   
  3.       <span class="ms-spimn-presenceWrapper ms-imnImg ms-spimn-imgSize-10x10">   
  4.          <img src="/_layouts/15/images/spimn.png?rev=40" class="ms-spimn-img ms-spimn-presence-disconnected-10x10x32" onload="IMNRC('{$UserEmail}');" ShowOfflinePawn="1" alt="" id="#############"/>   
  5.       </span>   
  6.    </a>   
  7. </span>