Sometimes you can use both. Example "Siamo stati nello stesso luogo", "Siamo stati nello stesso posto"."Luogo" sounds a little bit archaic, i would use not so often. The main difference is that "luogo" is more geographic, a place on earth, while "posto" has more meanings "un posto al cinema" "siamo stati a Londra , un posto bellissimo" "Al posto tuo non lo farei" etc...