Facebook will claim that this is ethical because your Facebook account is linked to the work systems and therefore your chats are company property. I will pass judgement - even if it had been talking shit on a purely internal chat application, such as a corporate slack, it would not be okay for HR to bring up talking shit - They would need to have had a dang good reason (A complaint from the other party of the chat that you had made threats, reason to believe you were discussing illegal activity or actively causing the company harm). What Facebook did was absolutely immoral, and it is clear that it is standard company policy.