Update social.class.php

factory must be static function