What message templates are being used to post nodes to twitter automatically using rules? Of the tokens listed as being available:
%site_name, %username, %node_url, %node_type, %title, %teaser, %body, %tinyurl
I can only get %site_name working properly. I was able to get one token that would output the title, (although it couldn't deal with "&" properly), but couldn't find any that would output the url properly. I've looked through the messages here, and while several people have asked similar questions, I couldn't find any definite answers on what message template would actually work. Perhaps this was an error with the beta, but using the latest dev causes a WSOD when posting nodes which have twitter post enabled.
Comments
Comment #1
bkraegelin commentedI have exactly the same problem. After some tests it looks like
function twitter_actions_set_status_actionin twitter_actions.moduledoes not get called with valid arguments.
Might this be a problem of the rules module?
Might it be a PHP version problem? (I have 5.3.3-7+squeeze8)
Any tips, how to improve the tests?
Comment #2
bkraegelin commentedJust found a solution, which works for me:
Enable PHP-Filter
Use something like
<?php print("$author->name blogs: $node->title " . twitter_shorten_url(url('node/'. $node->nid, array('absolute' => TRUE))) ); ?>Comment #3
13rac1 commentedCurrent 6.x-5.x-dev has new features for rules integration. See #1045304: Rules: Post to current user's Twitter account Please test with it.
Comment #4
dddave commentedThis branch is no longer supported. If this issue is still relevant feel free to reactivate it against relevant version.