 config =
   client_key:     process.env.HUBOT_INSTAGRAM_CLIENT_KEY
   client_secret:  process.env.HUBOT_INSTAGRAM_ACCESS_KEY
-  access_token:   process.env.HUBOT_INSTAGRAM_ACCESS_TOKEN
  
 Instagram = require('instagram-node-lib')
 Instagram.set('client_id', config.client_key)

# Configuration:
#   HUBOT_INSTAGRAM_CLIENT_KEY
#   HUBOT_INSTAGRAM_ACCESS_KEY
#   HUBOT_INSTAGRAM_ACCESS_TOKEN
#
# Commands:
#   hubot insta tag <tag> <count>- Show recent instagram tags

          msg.send data[index]['images']['standard_resolution']['url']
          index++

authenticateUser = (msg) ->
  unless config.client_key
    msg.send "Please set the HUBOT_INSTAGRAM_CLIENT_KEY environment variable."
