Hadith.1873 - Al-Ala narrated from Muhammad ibn Muslim, from Abu Ja'far عليه السلام, that he was asked about a man entering the bathhouse while fasting.
Imam عليه السلام said: "There is no harm as long as he does not fear weakness."
There is no harm in kissing for a fasting elderly man. However, as for a young man with strong desires, it is not allowed because it is not guaranteed that his desire will not overpower him.