title: Client Secret vs Access Token Rails Instagram API
body: <p>I'm learning Ruby on Rails and I'm trying to implement Instagram API.</p>
  
  <p>I'm reading through documentation <a href="https://github.com/Instagram/instagram-ruby-gem" rel="nofollow">https://github.com/Instagram/instagram-ruby-gem</a> and in the configuration portion it says to put </p>
  
  <pre><code>Instagram.configure do |config|
    config.client_id = YOUR_CLIENT_KEY
    config.access_token = YOUR_ACCESS_TOKEN
  end
  </code></pre>
  
  <p>But I'm currently following a sample application which instead of access_token, it has client_secret like this:</p>
  
  <pre><code>Instagram.configure do |config|
    config.client_id = 'YOUR_CLIENT_KEY'
    config.client_secret = 'CLIENT_SECRET'
  end
  </code></pre>
  
  <p>Now I'm wondering what the difference is between client secret and access token? </p>
  
  <p>Thanks</p>