I have a rule configured to post to Twitter and in the 'Post a message to Twitter' action I have the sender set as 'site:current-user'. I have a single Twitter account configured under an admin account which I have made global. If I create a node using the admin account the message gets posted to Twitter, but if I create a node using any other account the Twitter post does not happen. In the logs I can see 'Twitter authentication failed. Please check your account name and try again.'.
Do I need to set something other than 'site:current-user' as the Sender in my action, or do I need to do something to the global account, or is this bug?
Thanks.
Comments
Comment #1
mshepherd CreditAttribution: mshepherd commentedBy coincidence, I've come looking for an answer to the same question only hours after your post!
As it seems this functionality does not exists at the moment, I've changed this to a feature request.
Maybe [twitter:global-user] as a data selector?
In direct input mode, the sender is given in a User Identifier field (Specify an identifier of a user), but it's not clear if this should be a UID or a user object. Maybe that's more of a documentation issue.
Comment #2
mshepherd CreditAttribution: mshepherd commentedAs to my last point above, I can post to twitter using the global account by specifying the UID of the global twitter account owner in the User identifier field. In my case, the global twitter account is owned by UID 1.
This works great for me.
Even so, it would be nice to have a data selector as above.
Comment #3
dbooth CreditAttribution: dbooth commentedmshepherd you're a genius!! Switching to direct input and entering a UID works a tweet - thank you very much!!
Comment #4
mshepherd CreditAttribution: mshepherd commentedwhy thank you! I'm glad you got it working!
I'm finding Rules integration in the Twitter module to be EXTREMELY useful.
...works a tweet... tee hee!
Comment #5
dddave CreditAttribution: dddave commentedstill relevant?
Comment #6
DamienMcKennaWe're always willing to review patches :)