Get rid of all your gadgets
Perhaps this should be the first thing you should do. Get rid of your smartphones and gadgets. This is because the more you see the pictures, the more you will get infuriated and depressed.
Keep yourself in company of close friends
Never be alone in this type of situation. You will be very vulnerable and you may hurt yourself. You should call your close friends or loved ones to come stay with you or you leave your home to go stay with them. However, do not reach out to friends who will judge you.
Report to the police
If it is a case of revenge porn, you should report to the police so that they can take action. He should not share your private pix on the internet because you broke up with him. If he does, report to the police. Don't say you will leave him in the hands of God because he will be revel and grin in what he has done.
Accept It
It is very difficult to accept such a thing but you have no choice than to. Learn from it and move on. It was a mistake. Anyone who loves you will accept you for who you are.
See a psychologist
See a psychologist who can take you through the process of psychotherapy to help you overcome the incident. This is one of the best ways to recover from the incident.
Don't take revenge
Yes, you are very angry. You have the right to take revenge and do something nasty to the person who shared your nudes. Like earlier said, accept it and move on. But still, make a report to the police.
Right to be forgotten
This is a long shot. The Right to be forgotten is the right of individuals who have gone through a terrible ordeal to erase such an incident or ordeal online. In other words, when you search for your nudes, they will be unable to find it online. This is just to prevent continuous stigmatization for the rest of your life. This is possible and only search engines like Google and others can take it off. You just have to contact them.