title: Instagram redirect-uri fails for localhost
body: <p>I am writing a PHP app to fetch all my photos with Instagram using their API. However, what puzzles me is, I run the app on my hosted server it works perfectly fine and the same app running locally does not work.</p>
  
  <p>Here are some points on the app workflow:</p>
  
  <ol>
  <li>The user sees the homepage and he will be prompted with 'sign-in with Instagram'</li>
  <li>User signs in with Instagram and authorizes the app.</li>
  <li>Instagram redirects the user.</li>
  <li>The app then makes a request for access_token and receives it.</li>
  <li>Using the access_token, the app will send further requests for user media</li>
  <li>The response is parsed and the links to the images are now provided to the user.</li>
  </ol>
  
  <p>All the above mentioned process works fine on my hosted server but fails at 'Step 3.' and redirects user to home page of my app.</p>
  
  <p>The problem is localhost being the redirect_uri. Does anyone have a solution to this problem to use the app locally?</p>
  
  <p>P.S: I have registered two separate clients on Instagram: one for locally hosted development and the other on a web server.</p>
  
  <p>Also, I have tried localtunnel. Did not help either.</p>