Tools for Twitter is a plugin that creates a complete integration between your WordPress blog and your Twitter account.
Tools for Twitter integrates with Twitter by giving you the following functionality:
Tools for Twitter leverages Social’s connection to Twitter so that you don’t have to create an app and copy keys around. It supports multiple accounts (must be authorized as “global” accounts in Social) with settings on a per-account basis.
Support Level: Product Support (we want to fix bugs and make the product great, but do not provide individual support).
Developers:Fork and contribute on GitHub.
If you have upgraded from an older version of Tools for Twitter, your data will need to be converted to the new Tools for Twitter format. On the Tools for Twitter Options page you will see a prompt to upgrade if appropriate. Follow the steps to convert your data.
Tools for Twitter now stores complete Twitter data along with your basic tweet content. Over time, Tools for Twitter will request this data for upgraded tweets. This process make take a few days, as only 10 tweets are requested per hour (to avoid egatively impacting your rate limit).
Any Twitter accounts connected on the Social settings page are available for Tools for Twitter. You can enable them on a per-account account basis, as well as specifying per-account preferences for creating blog posts, etc. (on the Tools for Twitter options screen).
You can view, edit and delete (or unpublish) the local copy of your Tweets right in your WordPress admin. Navigate the tweets from the “Tweets” menu item and manage them just as you would any other post type. Tools for Twitter does not know if you’ve deleted a tweet on Twitter, so you’ll need to also delete the copy of the tweet from the admin to remove it from your WordPress site.
Tools for Twitter include options to create URLs for your local tweets using the following scheme:
You can enable public URLs for your tweets in your Tools for Twitter settings. If you choose not to enable public URLs for your tweets, you can still vuew and manage them from within the admin screens.
You can use a shortcode to display a list of tweets.
[aktt_tweets account="alexkingorg"]
If you want, you can specify some additional parameters to control how many tweets are displayed:
[aktt_tweets account="alexkingorg" count="5" offset="0"]
You can also choose to explicitly include or exclude replies and retweets:
[aktt_tweets account="alexkingorg" include_rts="0" include_replies="1"]
If you want to limit the tweets to specific @mentions or #hashtags, you can to that as well:
[aktt_tweets account="alexkingorg" mentions="crowdfavorite,twittertools" hashtags="wordpress,plugin,twittertools"]
The options for the shortcode are also available for the Tools for Twitter widget via a few settings.
Tools for Twitter can create a blog post from each of your Tweets. This feature can be enabled on a per-account basis. If there is an image included in the media data of the tweet Tools for Twitter will try to save that image as the featured image for the post and append it to the blog post content.
Please note that this will take effect for all future tweets, it does not retroactively create posts for older tweets (though you could pretty easily script it to do so if you desired).
Tools for Twitter is designed to be customizable via the standard hook/filter API. If you find you need additional hooks (or to suggest other bug fixes and enhancements) please create a pull request on GitHub.
https://github.com/crowdfavorite/wp-twitter-tools
Get creative! Here are some examples of ways to use more of the full Twitter data to create links back into Twitter where appropriate:
Tools for Twitter relies on the Social plugin to connect to Twitter. If you aren’t already using this plugin please install it before installing Tools for Twitter.
All of Social’s features (broadcasting, comment display, looking for responses on Twitter and Facebook and the ability to log in with Twitter or Facebook) can be disabled on Social’s settings screen.
Tools for Twitter starts archiving from the time you enable it. It does not try to download your entire tweet history. However, there is code in Tools for Twitter that can be scripted to download and import tweets. You can put together the pieces with your own code to create the combination of features you desire. Here’s an Gist to get you started:
<?php | |
foreach (file('/tweet-ids.txt') as$tweet_id) { | |
$tweet_id = trim($tweet_id); | |
$url = home_url('index.php').'?'.http_build_query(array( | |
'aktt_action' => 'import_tweet', | |
'tweet_id' => $tweet_id, | |
'social_api_key' => Social::option('system_cron_api_key') | |
), null, '&'); | |
// error_log('Importing tweet '.$tweet_id.' '.$url); | |
wp_remote_get( | |
$url, | |
array( | |
'timeout' => 0.01, | |
'blocking' => false, | |
'sslverify' => apply_filters('https_local_ssl_verify', true), | |
) | |
); | |
} |
The digest features never worked reliably and were removed in version 3.0. Another developer is welcome to make a plugin that uses the underlying features of Tools for Twitter to implement digest features.
These are no longer needed in 3.0+ since the default broadcast message is now fully customizable in the Social settings. Add your hashtags to your default broadcast message template.
Since Tools for Twitter no longer does broadcasting, this is really a question for Social. As noted in that FAQ, Social uses the built-in “short URL” feature of WordPress that supports any number of services via their plugins.
aktt_tweet_create_blog_post
filter to allow other plugins/code to make programatic decisions about when to create blog posts from tweetsaktt_tweet_create_blog_post_format
filter to allow post format to changed or omittedjson_encode()
function, required by the changes in WordPress 2.9 (version 2.1) created a problem for users with servers running 32-bit PHP. the json_decode()
function treats the tweet ID field as an integer instead of a string, which causes the issues. Thanks to Joe Tortuga and Ciaran Walsh for sending in the fix.Bit.ly plugin
Exclude Category plugin
Hashtags plugin