Oxytocin is a hormone your body makes. Taking it like a drug might make you less anxious around people but would not make you want hugs any less I don't think. It's expensive and not studied clinically at all. Very interesting article, where this journalist tried it on herself:
Can Oxytocin Get Me A Boyfriend? | Popular Science