You can redeem a referral code from your friend within the game itself. Press the Friends button (with two people depicted on it) in the lower part of the game window. Then press the tab "Indicate the inviting friend" and enter the code you got in a pop-up window. Then you and your friend will get gold coins or bonus items.
Have more questions? Submit a request