error handling in case of errors from facebook