Elgg sharing features

Could someone share me the logic on how to develop a share plugin? 
 

Thanks in advance.