Facebook said on Friday that hackers had discovered a security flaw that allowed them to take over up to 50…