RealName (http://drupal.org/project/realname) module can deal with Facebook user name replacements. No need to make it from scratch. I think it needs a field to choose and it will take it from there.

Comments

Dave Cohen’s picture

Status: Active » Closed (won't fix)

The facebook API allows you to learn a users name, once they've authorized your app. However, to save that value for more than 24 hours is a violation of their terms of service. To comply with the terms, you have to get the user to volunteer that info. You could have them type it into a form but you can't just save it or even pre-populate a form with the name.

That said, I don't plan to add any features that violate the terms of service. I'm sure it would be a very small third-party module that saves the user's real name, either as the username or via RealName module.