it is by design, facebook stores three versions of your password, and allows you to login with samecase, oppositecase (i.e. you forgot caps lock) and first-letter-upcase (cause some mobile stuff does that automatically).
There was an article somewhere but I can't find it at the moment.