The correct way to say "a candy" in French is "un bonbon".
Here are some examples:
* J'ai mangé un bonbon. (I ate a candy.)
* Peux-tu me donner un bonbon ? (Can you give me a candy?)
* Il y a beaucoup de bonbons dans le magasin. (There are many candies in the store.)