Your Facebook six digit code is like the PIN to your debit card. You should only type it into the official Facebook website (facebook.com) or the official Facebook mobile app.
An extra layer of security that asks for a code whenever someone tries to log into your account from an unrecognized device or browser. Account Recovery: facebook six digit code