title: django-allauth google integration gives "Social Network Login Failure" error
body: <p>I am working on an external site to integrate django-allauth for facebook and google login. Facebook worked almost out of the box. However, with Google I get the "Social Network Login Failure" error.</p>
  
  <p>Here is what I have done:</p>
  
  <p>1.Google APIs console: Client ID for web applications configuration</p>
  
  <pre><code> Client ID: xxxxxxx.apps.googleusercontent.com
   Email address: yyyyyyyy@developer.gserviceaccount.com
   Client secret: xxx-yyy-zzz-111-222
   Redirect URIs: http://learnbuzz.com/accounts/google/login/callback/
   JavaScript origins: http://www.learnbuzz.com
  </code></pre>
  
  <p>2.Created learnbuzz.com site in Sites</p>
  
  <p>3.Created the google app in Social Apps with the Client ID and secret from the google API console.</p>
  
  <p>From the docs and few other SO questions, seems like that is all that is needed.</p>
  
  <p>But, when I log in using google, I get to the <code>accounts.google.com</code> page where it asks the user to accept 'App sharing basic user information and email'. After I accept, it gives me a "Social Network Login Failure" for this url: </p>
  
  <p><code>http://learnbuzz.com/accounts/google/login/callback/?state=l1WdxOgr26bB&amp;code=4/lGhX6Dum_FNnM3FE39TcULZb1UMX.0jX6biQfm3MfEnp6UAPFm0F0CIGMgQI</code></p>
  
  <p>What config am I missing?</p>
  
  <p>Edit: I don't know if it matters but it takes the browsers quite some time before it throws out this error.</p>