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