Tuesday, 25 June 2013

Get the latest tweet from KMWC

Displays the latest tweet tagged #knowlewestmedia OR from knowlewestmedia OR to knowlewestmedia.

Code to embed the web-app

<iframe style="border:0" src="http://whosedata.net/kwmc-apps/kwmc-tweets/" seamless width="400" height="320" scrolling="no"> </iframe>

Twitter changed their api in June 2013. With the old api I pulled the tweets into a database and used php to generate a json feed for javascript to ajax into an html page. This process no longer worked as twitter set up new authorisation procedures. This web-app uses a php oauth script by http://www.jonhurlock.com/. The script takes care of the oauth and generates a json feed. Now the web-app directly calls the twitter api so if it is on a busy web site it may crash if it over runs the number of legitimate calls.