multiple twitter accounts causes confusion
rogermugs - January 9, 2009 - 06:27
| Project: | |
| Version: | 6.x-2.6 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
if i add a twitter account to my profile, then delete it and add another the system will get confused and use both accounts... if i have a 3rd or 4th it will just get more complicated.
i cannot post to twitter because it posts to whatever my first account created was.

#1
it's possible that this is related to the problem reported here: #379678: No data added to {twitter_account} since that issue means that new twitter accounts are not added 100% correctly and in this case the delete of the not correctly created account does not remove the relevant row from the twitter_account (or twitter_user table - I can't recall) table.
#2
Attached is a patch to dev that I claim will post to all Twitter accounts a user has where they've entered a password, but not (obviously) for those that don't have a password associated with them. (Adding a cross-reference to http://drupal.org/node/335459 )
#3
Subscribing.
#4
Updating the patch for 2.3. Takes into account whether the password is set for the account, so that it doesn't display an error if it fails for a password not being set (since it would definitely fail).
#5
Updating for 2.4. This only modifies twitter.module: the twitter.inc modifications in the patch appear not to be necessary for this version.
#6
Updating for 2.6. Adds some logic for the messages reported on successful post. It will only post a 'success' message to Drupal if there's a password set on the Twitter account. That is, since only an account with a password set can post to Twitter, it will not display a 'success' message for accounts without passwords in a user's settings.