If Facebook says it prevented a login but it was you, it may not have recognised the device or browser you used. Stop retrying, approve the attempt from a device that is already logged in, then log in once from a device and browser you have used before. If that fails, use Facebook's identity confirmation route.
Summary
Facebook asks you to confirm logins from browsers or devices it does not recognise when two-factor authentication is on.
Approve from a device that is already logged in, then log in once from a device and browser you have used before.
Private browsing or clearing history on close can make Facebook treat every login as new.
Fake messages that copy Facebook alerts are a phishing risk; check inside the Facebook app, never through a link.
Some steps are hard to undo, so it helps to know the order before you start.
You try to log in to Facebook on a new device, tap to approve it on your usual mobile, and still get a message along the lines of "We prevented a login". Then it happens again. It feels as if Facebook is protecting your account from you. The wording varies by app, browser and country, and we could not find a Facebook help page for this exact message. This guide explains why approvals can fail, the safe order to try, when to stop, and how to tell a real message from a fake one.
If Facebook says it prevented a login but it was you, it may not have recognised the device or browser you used. Stop retrying, approve the attempt from a device that is already logged in, then log in once from a device and browser you have used before. If that fails, use Facebook's identity confirmation route.
Facebook's page on how two-factor authentication works says that when it is turned on, you will be asked to enter a login code or confirm your login attempt each time someone tries to access your account from a browser or mobile device Facebook does not recognise. It also says Facebook needs to remember your computer and browser information to recognise it next time, and that if you use private browsing or clear your history every time the browser closes, you may need to enter a security code each time.
Its page on saving your device explains that saving a device lets Facebook recognise you at the next login, so you do not get unnecessary alerts or need a code every time. So a block on your own login can be Facebook not recognising the device or browser you are using.
On a device that is still logged in, check Facebook notifications for a login prompt.
Confirm the attempt only if it really was you.
Log in once from a device and browser you have used before.
If you are asked to save the browser, do so only on your own device.
Facebook's page on troubleshooting login with two-factor authentication says that if you are already logged in on a different browser, mobile or tablet, you can check your notifications on that device and may see a prompt to approve the new login attempt. Its page on reviewing recent logins says you can tell Facebook whether a login was you by choosing This was me, or not by choosing This wasn't me, and that after approving you may be offered the option to remember the browser or device. It says you should only do that on a device that belongs to you.
If approvals keep failing, more attempts are unlikely to help. Facebook's troubleshooting page says to try its tips in order: wait for a text message code, approve from another device, and use a recovery code if you saved one earlier. It then describes an identity confirmation route. Go to the screen asking for your two-factor authentication code. On a computer, click Need another way to authenticate?, then Other options, then Get more help. On Android or mobile web, tap Having trouble? You may be asked to upload a photo of a government ID, answer questions or use trusted contacts you set up earlier. Facebook says it reviews the request and sends instructions, typically within one to two working days, and that this route is not available on Facebook Lite.
If you think the account was hacked, Facebook's page on recovering an account when you cannot log in says to visit its hacked account page on a device you have used to log in before.
Facebook's page on protecting yourself from phishing warns about messages with threats or urgent demands, requests for login or account details, and language that urges you to click a link. It says correspondence from Facebook or Meta only comes from a short list of email domains, including fb.com, facebookmail.com and meta.com, and advises against clicking links in unsolicited messages even when they appear to come from Facebook.
Open Where you're logged in and log out of any device you do not recognise.
Check that your email address and mobile number on the account are still yours.
Save only your own devices, not shared or public ones.
Add a second sign-in method so one lost device does not lock you out.
Facebook's page on logging out of another device explains how to see where you are logged in, with date, time, location and device type, and how to log out of one device or all of them.
When someone asks us about a prevented login loop, we first work out whether it was their own attempt, a real outsider, or a fake message. Then we help them follow the order above, using devices Facebook already knows, and move to the identity confirmation route at the right moment. We never ask for login details or codes, and Facebook makes the final decision on access.
If no device is still logged in, if identity confirmation has failed, or if you think someone else has your login details, it helps to check the order before trying again. If you are stuck with this, we can handle it with you. You can read about our Facebook account recovery service and how we work on our trust page, then use Apply for Case Review below when you are ready. Reply within 60 seconds, 24 hours a day, every day.
Why does Facebook say it prevented a login when it was me?
With two-factor authentication on, Facebook asks to confirm logins from devices or browsers it does not recognise. Your device may not have been recognised.
How do I approve a login from another device?
On a device that is still logged in, check your Facebook notifications. Facebook says you may see a prompt to approve the new login attempt.
Why does it happen every time I log in?
Facebook says private browsing, or a browser that clears history on close, can mean a code or approval at every login.
Is a prevented login email real?
It may be fake. Do not click links in it. Open the Facebook app yourself and check your notifications and recent logins.
What if I have no other logged in device?
Use the identity confirmation route on the two-factor authentication screen, through Need another way to authenticate? or Having trouble?