Frogs don't get lonely. I would bring it to a vet. There is got to be reason for the lack of appetite. It can be as simple as a change in its surroundings or it can be more sinister, like an illness. I would've bet a large sum of money that the first one was sick when it died. I suspect this one is too, but that is for a vet to decide.