Building a map with all places where I've checked in from foursquare
Getting a Foursquare authentication token
The first step is to create an application. You have to register as developer account and create an app.
The important thing however is to add a Redirect URI which does not work yet. Such an URI could be for example
http://localhost:80
We have some ways to get our TOKEN, I solved it using Web Applications authentication where the user is redirected to given specified URL. I got up a simple server with ruby and sinatra waiting to send the authentication.
then I sent this url filling out with my ID
https://foursquare.com/oauth2/authenticate?client_id=MY_APPS_CLIENT_ID&response_type=token&redirect_uri=http://localhost:8080
after that you have to accept term to allow Foursquare give you the token:
http://localhost:8080/#access_token=THE_ACCESS_TOKEN
Then it's time to follow the steps from cheuan
Notes: For deploying the app if you are having trouble to deploy on heroku likely it could be because its not installing devDependencies this should fix it heroku config:set NPM_CONFIG_PRODUCTION=false