You can't log in to your Yahoo account because the account is configured with a password different from the Facebook one. In order to recover it, you can use the Yahoo! Password Helper. Check the first box, click Next, enter your Yahoo ID, press again Next and follow the on-screen instructions.