How it's done on Facebook:
http://www.facebook.com/sharer.php?u=<?php echo MINHA_URL;?>
And on Twitter:
https://twitter.com/intent/tweet?text=<?php echo TEXTO.' '.MINHA_URL?>
I've been searching this site , but I did not understand how to create a direct link to the site url.
I've also seen this example here , but I do not know how to use it without being through wordpress.
You also have this example .