It's not for your game, it's for your ds
When you go on the home screen, look on the top of the bottom screen and click the little orange smiley face. There you will see your mii on the bottom screen and your friend code on the top screen.
I would recommend making a mii first :P
Hope I helped!