what version of social media toolkit are you using? Make sure you are using the most recent version available from the download center. If you have a previous version, make sure to uninstall it from the extension manager before installing the newer one.
I can see some code that is not being written correctly. do a find for the following:
((!empty($_SERVER["HTTPS"])) ? "https://" : "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]
and replace it with:
<?php echo urlencode(((!empty($_SERVER["HTTPS"])) ? "https://" : "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>