Some weeks ago I found Twitter Username module, wich does exactly that: verifies if the entered value is a valid username. So I cloned it and changed it to work with Facebook Graph API.

After some bugs and later a patch for TU, I've got both modules to work as they should.

Finally, I think text fields with username verification (attached) would be a simple and great feature for Commons Facebook URL and Twitter URL fields, instead the ordinary text fields.

Hope it helps.

Comments

ezra-g’s picture

Status: Active » Needs review

Thanks! Marking as "needs review".

japerry’s picture

Version: » 7.x-3.x-dev
Issue summary: View changes
Status: Needs review » Needs work

Great feature request! I like this option much more than the heavyweight twitter or fb module. Its also a nice UX improvement since I've seen many people enter their twitter and facebook usernames in the URL strings, and we mangle it pretty badly on the profile page.

A few things needed though:
1) Need to use the supported twitter_username module and integrate it into commons 7.x-3.x
2) Would need to create a project for facebook_username and do the same to integrate it into commons
3) Create some upgrade path so sites that are using the URL can crop the username out of it and use the new widget.