Go to the Friends menu, choose the Invite Friends tab and enter the code using the Enter Gift Code option to get bonuses.