The suggestion is also made that Foucault had a different explanation for how scientific advancements are made, and that explanation suggests that the progress is guided by the society the scientists find themselves in.
Personally, I don't believe either is completely accurate. Whilst I agree that storytelling is a fundamental part of the human condition, which can lead us to jump to false conclusions, in general scientific knowledge is often built up iteratively, we build on what we already think we understand to explore what we don't. Society may influence which frontiers we're most likely to explore, but you can't decide on the impact of new discoveries, and what other new frontiers they unlock.