Less likely to be due to piracy, but it’s no better lol. You’ll need to change passwords for services which use the same password, if it is.
Did you get any email telling you to reset your password? Did you enter your security question answers into any Facebook quizzes? If you do have a reset link, check the URL and see if it’s actually https://facebook.com and not say, https://facebook.net. There are a ton of ways social engineering hacks work.
While you’re at it, I advise you to look into password managers(bitwarden,1Password etc come to mind). They can help you have different, secure passwords for all services and they sync across devices using iCloud/Dropbox too.