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

bkraegelin’s picture

I have exactly the same problem. After some tests it looks like
function twitter_actions_set_status_action in twitter_actions.module
does 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?

bkraegelin’s picture

Just 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))) ); ?>

13rac1’s picture

Status: Active » Postponed (maintainer needs more info)

Current 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.

dddave’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

This branch is no longer supported. If this issue is still relevant feel free to reactivate it against relevant version.