To get your friend code in Animal Crossing, first connect your Wii to the internet. Then open the friend code option (the heart icon near the bottom of the relevant menu) and your code will appear. Once you have your friends' codes, you can register each other and visit one another's towns.