![]() | clearString neatComponents
|
|
![]() | ||
![]() | Building & Styling Applications | ![]() |
Sending Twitter Status Updates |
![]() | ![]() |
neatComponents allows you to easily update your Twitter status at www.twitter.com
The Twitter Status Update is an action which can be added to components which support Events – for example the Data Entry Form.
Twitter uses OAuth as its authentication method. To use this you need to do two things:
To add a Twitter Status Update to an event:
Go to the Events tab for the component, and right-click in the Event tree where you want the tweet action to take place, and select New / Action / Twitter status update
The New Twitter Status Update will be added to the event tree. Right click this, and choose Properties.
This shows the configuration dialog, which has two fields to configure:
Twitter OAuth – of the Twitter account
Status – the contents of the status update
The values for each of these can either be:
- entered directly in this dialog, or
- taken from a Form field – if the component is a Data Entry form or Form, or
- taken from a the first record returned by a query, defined on the query tab of the dialog.
The OAuth token takes the place of the more traditional Twitter username and password. When configuring a Token you will be asked for your username and password, which you enter into a page hosted by Twitter. In this way Twitter users can allow your site to make posting to their Twitter account, without divulging their username and password to your site.
If your Tweets are not showing up when you expect (allowing a few minutes for Twitter to process them) it may be that your Token is invalid. To check this, open the Token dialog (as if you were going to add a new Token). If there is a problem with your Token it will show a yellow warning icon. Hover over the icon to see the error returned by Twitter.
The system will still attempt to send future tweets using the Token even if it received an error the last time it was used, in case the error was a result of a transient failure at Twitter. A successful tweet will clear any pre-existing alert icon from the Token.
As Twitter is designed as a realtime service (unike, say, email), the system does not queue failed Tweets for redelivery attempts.
Tweets are sent when configured – ie immediately upon the Form is submitted, or after a delay if you have configured one in the event tree.
You can configure an event to trigger multiple Tweets to be sent. Simply add multiple Twitter Status Update actions to the event tree. Unless you want them all to appear at the same time you should separate them out with delays.
Tweets are limited to 140 characters, including spaces. The system will truncate longer tweets to this length, however as this may compromise the meaning or break links, you should ensure the content is not too long.