Facebook chat did use erlang (Ejabberd to be precise), but they migrated to something other. WhatsApp uses erlang and is even a member (logo in partners section). So, Facebook uses erlang, but not directly as Facebook, but they changed tech stack away from erlang.
WhatsApp is now owned by Facebook.
Are you saying they changed the tech stack for WhatsApp?