Blue Flower

JPluginHelper::importPlugin('socialshare');
$dispatcher = JDispatcher::getInstance();
$dispatcher->trigger('shareDetails');

Use the above code in any Joomla extension(PHP file) so that it will loads the social share icons.