The strange thing is that every other email is sent correctly from Joomla to the same gmail account I was testing with. Normal registration, email reset, username retrieval, all works perfectly. The only email that is not sent is when one register through the Facebook button.
As a note, before I applied the fixes I sent you, just on the first registration from Facebook, I got an email. Strangely, I registered through the English site and the email came in Portuguese. After that, I fixed the code, deleted the user account and the #__joo_jfbconnect_user_map entry. Tried again many times, but could never get an email sent again. I touched nothing in the email area, so I don't think my fixes caused that behavior.