Posts Tagged twitter
Avoid Twitter API-IP Call Limit
Posted by Jeff in ACTIONSCRIPT 3.0 on March 19, 2010
Twitter limits the amount of calls you can make to its API and from one IP to a few hundred an hour. So that means if you have something on the page that is showing your latest tweets, it will only work for the first few hundred people. We have a really high traffic site and needed a more robust solution.
What we did is create a php file that loads the XML from the twitter user timeline (example) and saves it on our server. We setup a chron job to call it every minute. The Flash movie loads the XML file that our php file creates for us ensuring that we will never go over the limit but always have the most up to date content from Twitter displayed on our website.
If you have any questions or want an example of the source, post in the comments. Running Example.
Resources Used:
Dynamically Add UIScrollbar to Textfield AS3
Posted by Jeff in ACTIONSCRIPT 3.0 on February 17, 2010
This is building off my previous post and adding a scrollbar to the textfield if there are too may tweets to fit in it. You don’t need to load data from a HTTPService but this is helpful for loading data when you don’t know its length ahead of time.