title: How to login to Instagram from codebehind?
body: <p>I need to show images of a specific instagram user on my webpage. </p>
  
  <p>As stated in the Instagram API documentation I need to get authenticated to be able to "browse" a user's feed. </p>
  
  <p><em>"We only require authentication in cases where your application is making requests on behalf of a user (commenting, liking, browsing a user’s feed, etc.)."
  (<a href="http://instagram.com/developer/authentication/" rel="nofollow">http://instagram.com/developer/authentication/</a>)</em></p>
  
  <p>So as stated in the API documentation, I send a request to this URL: </p>
  
  <pre><code>https://instagram.com/oauth/authorize/?display=touch&amp;client_id=[ClientID]
  &amp;redirect_uri=[callbackuri]/&amp;response_type=token 
  </code></pre>
  
  <p>to be redirected to another URL: <code>http://your_redirect_uri?code=CODE</code> to be able to get the access_token (CODE) to be able to call the instagram RESTful services with it. </p>
  
  <p>The problem is that if my website visitor is not logged in to Instagram, he/she will be forwarded to a login page to authenticate first and only then I can get an access token. </p>
  
  <p>My question is: how can I bypass this login page by automatically login with my application's instagram account from the codebehind (or probably by javascript!)? </p>
  
  <p>I am using C# and Instasharp(<a href="http://instasharp.org/" rel="nofollow">http://instasharp.org/</a>) by the way.</p>
  
  <p>Any ideas?</p>
  
  <p>Thank you in advance!</p>