Your own unique Wii code can be found in the Address-Book section of the Wii menu. To successfully add friends to your Wii, both individuals must enter each other's codes into their own Wii consoles.
Once you have added them, you can message them, send pictures or play online with games which allow online functionality.