added exceptionhandling for socialmedia and reading credentials from propfile