# OAuth login with Google and Facebook not working

**URL:** <https://meta.discourse.org/t/oauth-login-with-google-and-facebook-not-working/50361>\
**Category:** Product Support\
**Created:** [September 19, 2016, 10:46pm UTC](https://meta.discourse.org/t/oauth-login-with-google-and-facebook-not-working/50361 "2016-09-19T22:46:41Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![alik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alik/32/114605_2.png) [@alik](https://meta.discourse.org/u/alik)\
**Post date:** [September 19, 2016, 10:46pm UTC](https://meta.discourse.org/t/oauth-login-with-google-and-facebook-not-working/50361/1 "2016-09-19T22:46:41Z")

</div>

We installed 1.7.0.beta4 on a Digital Ocean droplet. Everything is working great, except for signup via Facebook and Google Logins (haven’t tried others). The user authorization process works fine (Sign Up → Redirect to Google or Facebook → User clicks Approve → Redirects back to Discourse), and the Discourse app is added successfully to the Google / Facebook user accounts; but once user returns to Discourse, this error message is displayed, and no user is created in Discourse:

> “Sorry, there was an error authorizing your account. Perhaps you did not approve authorization?”
> 
> ![](https://global.discourse-cdn.com/meta/original/3X/f/9/f9bef534883d4874107409ab603089d674029379.png)

There’s nothing in browser debug Console/Network that suggests what the problem is. Here’s a snapshot of the Console output after a Facebook sign up attempt:

 ![](https://global.discourse-cdn.com/meta/original/3X/9/c/9c12b417a4a1dec3df81e3e5d78fbf2fecc3440f.png)

Our configurations are as follows:

**Facebook**

 ![](https://global.discourse-cdn.com/meta/original/3X/5/0/505c3fc41f88e756fbc130c9e9e2ab76f3d7b916.png)  
 ![](https://global.discourse-cdn.com/meta/original/3X/5/a/5a896bd2a2f645359a10ad34909b6184cd5bcc30.png)  
 ![](https://global.discourse-cdn.com/meta/original/3X/a/a/aaa99eee63b0a6ec336ee982f96856885869f50e.png)  
 ![](https://global.discourse-cdn.com/meta/original/3X/c/b/cbd392da59cb00ee92be0b4dc65a977ca963850b.png)

* * *

## **Google**![](https://global.discourse-cdn.com/meta/original/3X/f/b/fb23bb75de3cff158ad62c3303c4a749d1b562de.png) ![](https://global.discourse-cdn.com/meta/original/3X/e/8/e88b9a686ccfadeb7b059f5412717857eaad670a.png)

**Discourse**

 ![](https://global.discourse-cdn.com/meta/original/3X/9/b/9b02a93ea06ff4e04d40ac85a9fa69c81d639703.png)  
 ![](https://global.discourse-cdn.com/meta/original/3X/0/6/065b302225cc3018c97b5050df903e4ac183f885.png)

---

_[View the full topic](https://meta.discourse.org/t/oauth-login-with-google-and-facebook-not-working/50361)._
