social links logic