Get security code for two-factor authentication to log in to Facebook
If you're having trouble with logging in to your Facebook account, review these tips first.
If you've turned on two-factor authentication, there are several ways that you can get your security code or approve your login attempt.
Get security codes
- You can use a 6-digit text message (SMS) code sent to your mobile phone.
- By tapping your security key on a compatible device.
- With a security code from a third-party app that you've associated with your Facebook account.
- You can approve your login attempt from a device that we already recognise.
- With one of your printed recovery codes.
If you're unable to receive your security code, learn more about how to troubleshoot login with two-factor authentication.