I use the Tor Browser to access the internet, but when I log into my Facebook account it has been locked and shows a security message from Facebook informing me that someone has tried to log into my account from Portugal. I am living in Sri Lanka.
What would be the issue? Did someone try to hack my Facebook account via Tor Browser?
You probably logged into your Facebook account over Tor.
Facebook sees you exiting the Tor network in Portugal, or what it thinks is Portugal and so it flagged up your own login attempt as suspicious.
In future you might consider using Facebook's own Onion Service at https://facebookcorewwwi.onion/.
Correct answer by cacahuatl on February 19, 2021
Get help from others!