IRC had closed or private channels and the open channels were heavily moderated as well. I was a #linux moderator on EFnet for several years.
I believe the success of IRC is not due to the greatness of the tool but the userbase. It was pretty much university students world-wide and a few others. Similar behaviours, trainings, ideals etc. Facebook has a lot more diversity and thus conflict.