To help you become rich, a friend needs to install the game and enter the code, which you have shared in social networks, to the input box in the game's Store.
When your friend uses the code, 500 Ecoins will be added to your wallet as well. To get them in your game, you also need to open the game's Store and tap the Wallet button.