def configure_connection(opts = {})
      opts['client_id'] ||= Lentil::Engine::APP_CONFIG["instagram_client_id"]
      opts['client_secret'] ||= Lentil::Engine::APP_CONFIG["instagram_client_secret"]
      opts['access_token'] ||= Lentil::Engine::APP_CONFIG["instagram_access_token"] || nil

      Instagram.configure do |config|
        config.client_id = opts['client_id']
        config.client_secret = opts['client_secret']

        if (opts['access_token'])
          config.access_token = opts['access_token']
        end
      end
    end
def configure_connection(opts = {})
      opts['client_id'] ||= Lentil::Engine::APP_CONFIG["instagram_client_id"]
      opts['client_secret'] ||= Lentil::Engine::APP_CONFIG["instagram_client_secret"]
      opts['access_token'] ||= Lentil::Engine::APP_CONFIG["instagram_access_token"] || nil

      Instagram.configure do |config|
        config.client_id = opts['client_id']
        config.client_secret = opts['client_secret']

        if (opts['access_token'])
          config.access_token = opts['access_token']
        end
      end
    end
Configure the Instagram class in preparation requests.

 @options opts [String] :client_id (Lentil::Engine::APP_CONFIG["instagram_client_id"]) The Instagram client ID
 @options opts [String] :client_secret (Lentil::Engine::APP_CONFIG["instagram_client_secret"]) The Instagram client secret
 @options opts [String] :access_token (nil) The optional Instagram client ID