Various kinds of punishment have been used in behaviorist labs; electric shocks were popular for a while. But just as with rewards, it’s not necessary for punishments to be real and physical. Sometimes experiments deny a subject points or tokens. You are getting the equivalent of both treats and electric shocks when you use social media.