The player names you see in your Friends menu is the name of their account in the social networks associated with their towns.
IMPORTANT NOTE: co-op chats use town names as names for players.
If you want to change your name in the game, first find out what social network you use. Then change your name in that social network to see it change in the game.