The best example of this is heroin, which has both a severe physical and mental addiction component, and it's the mental addiction that makes relapse so common.
Mental addictions rewire the brain's chemistry, causing the user to seek and only find joy in the substance. This is a better comparison for social media (albeit not as destructive and instantaneously harmful as narcotics)