How millions of selfies helped sell a TV show