title: How to ensure that my iOS app has a valid access token for use with the Instagram API
body: <p>I'm building an iOS app that will use instagram photos in a slide show as the background of the app. </p>
  
  <p>What I want to do is just set up a specific account that I can upload pictures to, and then the app will pull in the most recent photos from this account.</p>
  
  <p>So far, I've set up the account and have been able to generate an access token manually by inserting my client id and redirect URI into this URL</p>
  
  <pre><code>https://instagram.com/oauth/authorize/?client_id=[CLIENT_ID]&amp;redirect_uri=[REDIRECT_URI]&amp;response_type=code
  </code></pre>
  
  <p>However, I've read that the access token generated from following this procedure is not permanent. I do not want the users of my app to ever see the authentication going on in the background. They themselves will never actually login into Instagram.</p>
  
  <p>What would be the best way of making sure my app is always authenticated at launch and that the access token is always valid?</p>
  
  <p>Thanks</p>