when you meet the person for the first time.you should say "ni hao" .however, if the greeting between friends, you can say "fan4 chi1 guo4 le ma1 ?"(it means do you have the meals?but please notice, it doesn't mean that you invite him/her to have meals togher.)