title: 'Redirect URI does not match registered redirect URI' using Python Social Auth
body: <p>I am using <a href="http://python-social-auth.readthedocs.org/" rel="nofollow">python-social-auth</a> for authentication with social networks.</p>
  
  <p>I have installed and configured everything. In the last step, I added these two action links:</p>
  
  <pre><code>&lt;a href="{% url 'social:begin' 'facebook' %}"&gt;Login with Facebook&lt;/a&gt;
  &lt;a href="{% url 'social:begin' 'instagram' %}"&gt;Login with Instagram&lt;/a&gt;
  </code></pre>
  
  <p>Facebook login is working fine but instagram is giving me the following error:</p>
  
  <pre><code>{"code": 400, "error_type": "OAuthException", "error_message": "Redirect URI does not match registered redirect URI"}
  </code></pre>
  
  <p>in my settings.py I have these:</p>
  
  <pre><code>SOCIAL_AUTH_INSTAGRAM_KEY = 'my_key'
  SOCIAL_AUTH_INSTAGRAM_SECRET = 'my_secret'
  </code></pre>
  
  <p>and</p>
  
  <pre><code>INSTAGRAM_REDIRECT_URI = 'http://localhost:8000/shops/edit'
  </code></pre>
  
  <p>the most interesting part is that if I try to do this without <a href="http://python-social-auth.readthedocs.org/" rel="nofollow">python-social-aut</a>, i.e. using these configurations:</p>
  
  <pre><code>INSTAGRAM_CLIENT_ID = get_env_setting('INSTAGRAM_CLIENT_ID')
  INSTAGRAM_CLIENT_SECRET = get_env_setting('INSTAGRAM_CLIENT_SECRET')
  INSTAGRAM_REDIRECT_URI = get_env_setting('INSTAGRAM_REDIRECT_URI')
  </code></pre>
  
  <p>It is just working fine. </p>
  
  <p>I am thinking it has something to do with that python-social-auth app.</p>
  
  <p>How can I fix it?</p>