Does anyone know of a module that "associates" social media usernames with a Drupal account? For example, if I am a using some module to pull in Tweets, I would like the module to realize that @johnsmith is known as JSmith on the Drupal site. It doesn't necessarily need to print this information -- even some kind of API would be nice.

If no module like this exists, does anyone have a recommended path for creating one? Is there another module I should consider building on?

Comments

WillHall’s picture

There are a couple modules that do some stuff, but I am not sure that they would fit the bill here.

Sounds like you want to inspect the page for @user and have that link to the users profile on your site?

http://drupal.org/project/twitter_pull <- might get you headed in the right direction...

You will probably need to do quite a bit of customizing, but at least that will help you get the twitter api out of the way.

Basically - and this is more of a concept than anything you are gonna need to use jquery to find patterns that match @user and then call a custom php function to link it to the user account. Which would be pretty straight forward if you had their social usernames stored in a profile field

john.karahalis’s picture

Thanks for the help and the very quick response, WillHall.

Sounds like you want to inspect the page for @user and have that link to the users profile on your site?

Sort of. We don't necessarily need to link to the user's profile on our site, but we would like to draw some connection between the social media account and the associated user on our site.

For example, imagine the following scenario.

  • Our website pulls in Tweets. It looks something like this.
  • But the system realizes that @azaaza actually has an account on our site, under the name "Aza Raskin".
  • The system draws the connection in the interface. It looks something like this.

The key part here is not so much the interface, but instead the mechanism that recognizes that Twitter user @azaaza is actually the same person who owns the account "Aza Raskin" on our site. Do you know of any module that can do this? My hunch is that we'll need to create a custom module for something so specific, but I'd like to avoid that path if possible.

(I hope Aza doesn't mind me using him in this example. I would have used Stallman, but I'm sure he doesn't use Twitter... :-) )

TomDude48’s picture

You might want to try the social media module. It enables you to associate Twitter and other social media profiles with a user then provides functions and tokens use the data.

It is only available for D7 through.

Website: getlevelten.com
Build faster: Open Enterprise Drupal
Analyze deeper: Open Enterprise Intelligence