Now that we have created the basic module in order to authenticate against FourSquare, we are going to extend it in order to let the user "check-in" to a particular location. This works by sending details of your current place (for example, a bar, cinema, park, or museum) along with its latitude and longitude values to the FourSquare servers. From there, you can then tell which of your friends are nearby, or alternatively, make your location and activities public for everyone to see.
Open your fsq_module.js
file and extend the existing module so that it has the extra method as follows:
FOURSQModule.callMethod = function(method, GETorPOST, params, success, error) { //get the login information try { if (FOURSQModule.xhr == null) { FOURSQModule.xhr = Titanium.Network.createHTTPClient(); } ...