“We will keep improving our systems to detect malicious activity, including through the use of machine learning,” the social network says. Facebook says it provides guidance and tools to help keep your account safe. The best form of protection is to prevent your account from getting hacked in the first place. “I had to confirm five friends I was connected to on Facebook and a couple of memories. Surprisingly, this worked and my Facebook account was unlocked.” How to avoid Facebook getting hacked When Hogue clicked through to Facebook, the social network had added recovery options that were not available previously. Yet she did get her account back in the end, weeks after her initial efforts, when she tried to access Facebook again after a friend sent her a video to watch.