Well, considering that 90% on GitHub is crap (Sturgeon's law), they might be right.
While there are of course productive repos in it, also consider all the hobbyist repos, me-too repos, NIH repos, useless fork/pull repos, half-baked repos, circle-jerk fad concept/language of the month repos, etc. Those are quite analogous to Facebook, no?