It is really hard to tell by the photo if this is a prolapse but if it is it needs urgent attention.
Here is a link to some help on the subject and if it is it really needs to be put back in whether by you or a vet.
Gray Treefrog Prolapse
Keep us posted on the progress. maybe someone can chime in with more help.