adding twitter setup
added Facebook API
error handling