My website is generate a unique id or link to every user so how I can add share button to let user share his link in FB for example ? My website generate code is :
$uid_code = md5($user);
echo '<br /><center><div id="codewrap">Copy link and share it <br /><code>'.$sksiteurl.'index.php?nav=test&id='.$uid_code.'</code></div></center>';
First Put a button on where you want to add sharing link like below
Now by this jQuery you can share any page link
Try this.