The two products don’t "integrate" per-say. Lync provides a replacement for the standard "orb" ActiveX (name.dll) which makes this feature then use Lync.
If you are looking to use this feature in SharePoint, the People fields will have it by default.
This website provides some snippets to show Lync presence information in SharePoint 2013 –
http://www.sharepointcolumn.com/lync-presence-indicators-code-snippets-in-sharepoint-2013/[
^]
Alternativly, if you are looking to create a Lync “Bot”, Check out -
https://msdn.microsoft.com/en-us/library/office/dn454840.aspx[
^] as it covers alot of info and even has a sample one.
-DB