By ayathullah on
Hi,
I'm using the twitter module for my site and getting errors when I enter tokens in the actions field for the twitter username.
How do you set up a rule to post a message to the current user's Twitter account? At the moment, the form in the "Post a message to Twitter" action only permits a absolute value. I want to use a token for the current user's Twitter account.
Perhaps someone can give me a code snippet that I can implement either to the twitter module or to the tokens module- to pull the logged in users twitter account username.
Thanks,
ayathullah
Comments
I use the Rules module and
I use the Rules module and have written some custom rules event and actions to do things similar to what you're looking for. I just copied and modified the code on http://dominiquedecooman.com/blog/drupal-custom-rules-how-write-your-own... to achieve what I wanted, even though it wasn't related to the Twitter module. If you combine the methods in the mentioned link with the code I posted here (which I known you've already found), it should get the job done.