add social sharing code for logged users