What does buttering someone up mean?

It means being very friendly to someone, probably so that person will give you something back in return for being so nice to them.