=== Reliable Twitter ===
Contributors: sparkweb
Donate link: http://www.salvationarmy.org/ihq/www_sa.nsf
Tags: twitter, widget, google, ajax
Requires at least: 2.7
Tested up to: 2.8.4
Stable tag: 1.2
== Description ==
Adds a sidebar widget to display Twitter updates using the more-reliable Google Ajax API.
The Problem: On many blogs, I need to add a little twitter badge to a front-page or sidebar. There are many, many great apps out there to do this including Twitter's own JavaScript badge. The problem is that Twitter's feed is very unreliable and only works about 50% of the time. That's completely unacceptable.
The Solution: After much looking around, I've hit upon a simple method for displaying tweets using Google's Ajax API. Google's reliable servers do all the caching for us and life is good again.
I used the excellent [Twitter Widget](http://wordpress.org/extend/plugins/twitter-widget/) app by Sean Spalding as a base and the Google Ajax concept by [Emmett Connolly](http://blog.thoughtwax.com/2007/04/a-more-reliable-twitter-badge).
== Installation ==
Copy the folder to your WordPress
'*/wp-content/plugins/*' folder.
1. Activate the '*Reliable Twitter*' plugin in your WordPress admin '*Plugins*'
1. Go to '*Appearance / Widgets*' in your WordPress admin area.
1. Drag the '*Reliable Twitter*' widget to your sidebar.
1. Configure the options:
2. *Account*: Your Twitter account ID, REQUIRED.
2. *Title*: The heading you want to appear above your Twitters in the sidebar, defaults to 'Twitter Updates'.
2. *Show*: The number of Tweets shown, defaults to 3.
2. *Link Target*: The default link target, defaults to '_blank'.
2. *Follow Me Text*: Text for a follow-me link after your twitter feed, optional and defaults to nothing.
2. *Twitter Username*: Only needed if you enter follow me text, used for the link. Defaults to nothing.
2. *Google API Key*: Your Google API key if you wish to include it, completely optional and not required in any way.
== Frequently Asked Questions ==
= My username isn't working. What's wrong? =
You need to use your Twitter ID # which is different from your username. Use [http://www.idfromuser.com/](http://www.idfromuser.com/) to look up your user ID.
= Why is my feed showing the three oldest entries instead of the three most current? =
We've run into this a few times. It seems to have to do with the way that the Google Feedfetcher grabs the feed for the first time. One thing that seems to fix this is to change your show # to 10 or 20, save, load the app, then change it back to the # you want. This somehow seems to refresh Google's caching.
= I don't use widgets. Can I just add this to my template directly? =
Yup! (And I don't blame you, widgets can be hard to deal with). Just put this code in your template:
``
...and replace '11469962' with your Twitter ID #. This will display the last three tweets on your page. There are some optional fields that you can pass in as well. Here are the available parameters:
``
1. $accountid: Required
1. $show: Optional - the number of responses to return. Defaults to 3.
1. $title: Optional - will be wrapped in an H4 tag above your tweets. Defaults to nothing.
1. $target: Optional - The target placed in your links. Defaults to _blank.
1. $googleapikey: Optional - Lets you include your [Google Api Key](http://code.google.com/apis/ajaxfeeds/key.html) if you so desire. (I don't know of any benefits to doing this, though.) Defaults to nothing.
Here are some examples:
``
Shows 5 tweets, with a title of "Twitter Updates", and the links target "_self".
``
Shows 1 tweet, with a title of "Latest Twitter Update", and the links don't have a target attribute.
``
Shows 4 tweets, with no title. The links have a target of "_blank" and an API key of "123456789" will be passed to Google.
== Screenshots ==
1. The options screen.
== Legal ==
License: GPL
This software comes without any warranty, express or otherwise. Use at your own risk.
== Other ==
Plugin URI: http://www.soapboxdave.com/reliabletwitter/
Author: David Hollander
Author URI: http://www.soapboxdave.com/
== Changelog ==
= 1.0 (Sept 16, 2009) =
* Initial release
= 1.01 (Sept 16, 2009) =
* Quick JavaScript bugfix when Google doesn't return all fields.
= 1.1 (Sept 17, 2009) =
* Enabled more than four returns from Google.
* Added options for configurable link targets and an optional Google API key.
* Fixed the "x minutes ago" statement to be more accurate.
* Removed the default Google CSS which was adding unneccesary page load.
= 1.2 (Sept 18, 2009) =
* Added a feature to the widget which allows you to add a "Follow Me" link beneath your tweets. (Thanks to Marko for the excellent suggestion.)