I have never experienced that sort of behavior in my chams but my male Sambava does lick his vines. I guess it sort of tells me he is thirsty and trying to drink so I mist and let him drink. Maybe your little guy is trying to do the same, looking for water?

Or just trying to be a puppy? Lol! He should be fine as long as there are not loose pieces of wood he can injest.