You can say:
"I have been invited to her house to have dinner." This means you were invited, but you have yet to go for dinner.
"I was invited to her house for dinner." is suitable — but isn't clear as to whether or not you have attended the dinner as yet.
"Have been" is probably a little clearer and more formal.
If you have already been to the dinner, you would say, "I was invited to her house for dinner," or "I went to her house for dinner."
I hope that is helpful! :)