Please don't let your guinea pigs eat cat snacks. Piggies are vegan. They aren't built for that.
My cats like to hang out with my guinea pigs, too. I try to get them to stop eating their hay. Sometimes they only poop the hay partway out, and I have to tug the long strand right out of the kitty butt.