1st Orient yourself properly: Abstinence is not the goal. Recovery is.
2nd Embrace loneliness: When you feel lonely, give yourself a shoulder-massage, a hug, a caress. Love yourself and others will follow.
3rd Everything will pass: Remember. You're OK. I'm OK.