I am using Kartik’s widget to share on FB, Google+ and Twitter. Example below
<?php echo FacebookPlugin::widget(['type'=>FacebookPlugin::SHARE, 'settings' => ]); ?> <?php echo GooglePlugin::widget(['type'=>GooglePlugin::SHARE, 'settings' => ]); ?>
The sharing is working fine but it is sharing the URL of page on which the above code is written. I want to have these share buttons sharing different URL. Is it possible to pass the URL in above code or is there any other better way to share for such scenario?