How to display your latest foursquare check-in details on your blog
Edit (28th August 2011) This post is deprecated as Foursquare now requires Libraries/softs to use the OAuth protocol to authenticate users. The updated version of the code and how to install it explained in this post
One of the coolest feature of Google Lattitude is the widget that you can add to your blog or site to display your current location. Since I am already using Foursquare, I wanted to do the same by displaying my latest check-in. Turnout that foursquare provides an API to retrieve your latest check-in details, but I couldn’t find a code to create a widget from it. To fill this gap I wrote a small PHP class that fetches check-in data from Foursquare and generate a map for it by using Google map API. Using this class you can easily generate a widget that looks like the one below in less that 5 lines of code.
Read More...
