I don;t think there is a way to "undo" a factory reset. You could of course restore your iPhone from a backup (if you enabled it, iCloud backup; or if you backed up your phone on iTunes) or get your photos from the iCloud Photo Library if you saved them there. If you didn't do a backup or had iCloud Photo Library on, you aren't able to get your photos.
So basically I couldn’t get into my instagram I was told factory resetting my phone would work, I tried and everything was deleted is there anyway I could send my phone off so I could get all of my photos back?
User profile for user: Anonymous1798
Question: How to undo a factory reset