NEW YORK (AP) — Facebook says 50 million user accounts have been affected by a security breach.