From 2011, a psychologist famous for his Cyberball study details how social exclusion is processed as physical pain in a brain MRI.

The Pain of Exclusion
Even trivial episodes of ostracism can shatter your sense of self. But you can lessen-and learn from-the pain
scientificamerican.com