I don't recall him going there before, but I could be wrong. He bursts in to save Xander uninvited.
In "Consequences", Faith was living in a motel room, not an apartment. As such, it was not a private residence- rather it qualifies as a public place which vampires don't need invitation for.
Some further info on vampire invitations in Buffy.