     msg.http(url)
       .get() (err, res, body) ->
         return unless checkHTTPErrors err, res, body, msg
+        robot.logger.debug body
         result = JSON.parse(body)
         msg.send "1) Add #{result.response.user.user_name} as a friend - #{result.response.user.untappd_url}\n2) Type `#{robot.name} untappd approve`"
 

  getFriendFeed = (msg) ->
    untappd.friendFeed (err, obj) ->
      return unless checkUntappdErrors err, obj, msg
      for checkin in obj.response.checkins.items
        time_ago = moment(new Date(checkin.created_at)).fromNow()
        if checkin.venue.venue_name

  # Check Errors
  checkUntappdErrors = (err, obj, msg) ->
    if err
      robot.logger.error err
      msg.send err
      return false
    if obj.meta.error_detail
      robot.logger.error obj
      msg.send "#{obj.meta.code}: #{obj.meta.error_detail}"
      return false
    true

  checkHTTPErrors = (err, res, body, msg) ->
    if err
      robot.logger.error err
      msg.send err
      return false
    if res.statusCode != 200
      robot.logger.error res
      obj = JSON.parse(body)
      msg.send "#{res.statusCode}: #{obj.meta.error_detail}"
      return false
