Login using already hashed (MD5) password

Is it possible to login to facebook chat offering a already hashed password? A method to login without knowing the plain password would be useful for some implementations. If someone can offer me a code snippet as an example or a smack developer to consider this suggestion.

Thank you in advance.