adding code for fb n twitter issue