It sounds a lot like one of the Mafia games. I know Mafia Live awarded points for sharing codes... think iMob did same.
Sadly I can't remember. I was browsing somewhere in the Games section and saw an app with a suspiciously high number of reviews then saw what was going on.