How do I get an exp share?

New to the game, but can anyone tell me how to get an exp share

Buy one in the black market under Helios city. Top and to the right vendor. 3000 pokedollars

Thank you about how far into the game are you before you can get it?

Right before the third gym