updated social media code