The technique used to achieve this was truly innovative, and akin to malware behaviour. It exploited protocols to break the isolation between apps and browsers, a fundamental security concept meant to protect users.
If you have access to the phone number or email account associated with your Facebook or Instagram account, try to reset your password by clicking on the Forgot password? link.