UPDATE: AUGUST 2011 – It does still work. I’ve created a test page on my server, click here.
Continuing my education with Social Media API integrations I’ve created a small script to just show the Mayor of your Foursquare Venue. In the image to the right you will see the script working on the Cafe Alma sidebar.
This Gist will only output the text “The Current Mayor is” , the User Image at 25px and the User Name at 18px Bold. Feel free to wrap it in a div of your liking and style it.
YOU WILL NEED A FOURSQUARE OAUTH TOKEN – https://foursquare.com/oauth/
It also has been approved as a MODx Extra – http://modx.com/extras/package/foursquaremayorpost