added and fixed facebook api, added twitter api, integrated both to page.init.php