the error message sounds like you may have conflicting extensions installed. please post a list of the extensions you have installed including version numbers.
for social media to work correctly in a template page, the page must be a dynamic PHP template:
templatename.dwt.php
and the pages created from the template will nee to be php pages:
pagename.php