Update SocialMediaHelper.php

Cleaned some code.