Updated code for social media

Latest code is updated