Instagram can be cheated by setting the callback URI to localhost:3000 and then manually copying out the token from the response, but Foursquare don't like it. This is a problem because I run Apache as my web server and am proxy passing my api.foo.com requests to localhost:3000.