If you think MDMA is giving you a feeling of deep friendship with a perfect stranger, then you might be hallucinating the feeling of a long and strong relationship.
However, that's not really the feeling you're getting on molly. It's more recognizing the preciousness of our shared humanity. If done with a friend or a lover, this in itself is a genuine bonding experience. If done with a stranger, you're not expecting anything more after the experience, but it still feels valuable.
Same goes for bonding, closeness and so on. You just tricked your brain into hallucinating emotional responses for things that are not there.