It very likely has a real effect for some people, beyond just placebo.
Only way to know is to get people who are actively using social networks and aren’t thinking about quitting to just quit for no reason. Chances are you probably won’t see any change in happiness, just a change in habits.
That would be a fascinating experiment to perform if experimenters could get compliance.