A phrase or a word for saying a nice thing just for its sake

Are you thinking of something like not "just being polite" as referenced here? "Insincere" might be another possibility in that case.