You would violate the terms of service for sharing your passwords with a third-party.
Facebook for example: https://www.facebook.com/terms Section 4, number 8:
"You will not share your password (or in the case of developers, your secret key), let anyone else access your account, or do anything else that might jeopardize the security of your account."