You can't "get" someone to appreciate something. And when you give someone a gift or a favour, it should be without expectation of anything in return.
It could be this person thought they had expressed their appreciation but may have forgotten or you might not have heard them when they did.
you shouldn't give to receive but being gracious costs nothing, I agree.
If this person hasn't been gracious the best way for you is just not to invite them again.