I have seen pictures of people with their entire team following them in HGSS. How do you do that?
You don't. Only the first Pokémon in your party can follow you. Though there are some spots in HGSS where you can take pictures of your whole party, which might have been what you saw.
Source (actually experience this is just for reference)