# I have 403 error when login by facebook app

**URL:** https://meta.discourse.org/t/i-have-403-error-when-login-by-facebook-app/189750
**Category:** WordPress
**Created:** [May 8, 2021, 8:38am UTC](https://meta.discourse.org/t/i-have-403-error-when-login-by-facebook-app/189750 "2021-05-08T08:38:59Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [May 8, 2021, 8:38am UTC](https://meta.discourse.org/t/i-have-403-error-when-login-by-facebook-app/189750/1 "2021-05-08T08:38:59Z")

</div>

I use plugin for wordpress to login by discourse.  
But when I try to login to discourse by facebook app, it takes this error:

 ![d731249c97e262bc3bf3](https://global.discourse-cdn.com/meta/original/3X/4/d/4d794e7dfbecc16d0ff4afbb2f6c55c982ddbf80.jpeg)

I think this cause by discourse login auth by google  
Could you check this login issue on facebook app?

My login at this link:

> **[Working24 - Make content to last](https://help.working24.net/session/sso_provider?sso=bm9uY2U9NjQzY2UyNWQ3N2U2NDVmN2MxOGVmYjMwNmFlMTM0NDQmcmV0dXJuX3Nzb191cmw9aHR0cHMlM0ElMkYlMkZhcHAud29ya2luZzI0Lm5ldCUyRnZpJTJGbGFwLWtlLWhvYWNoLXZhLXRpbmgtZ2lhLWNvbnRlbnQlMkY%3D&sig=532a728b27f8bad27734ef6db76cc19243ca515271d00ad9908ea5a55d7ef4d9)**
>
> Make content to last

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [May 10, 2021, 4:53am UTC](https://meta.discourse.org/t/i-have-403-error-when-login-by-facebook-app/189750/2 "2021-05-10T04:53:17Z")

</div>

Is anybody here?  
This error is very important for my facebook customer now.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [May 10, 2021, 9:23am UTC](https://meta.discourse.org/t/i-have-403-error-when-login-by-facebook-app/189750/3 "2021-05-10T09:23:04Z")

</div>

Hey there 🙂

Sometimes you’ll find a slight delay in response when posting a support question late on Friday.

> [@cmdntd](#):
>
> I use plugin for wordpress to login by discourse.  
> But when I try to login to discourse by facebook app, it takes this error:

Your issue is not a [WP Discourse](https://github.com/discourse/wp-discourse), or a Discourse, one. It’s an issue caused by the fact that Google doesn’t allow OAuth2 logins in embedded browsers (e.g. Facebook’s embedded browser). You’ll find that a number of other websites have the same issue. [For technical detail on the issue see here](https://stackoverflow.com/questions/65353812/web-google-auth-workaround-for-403-disallowed-useragent-exists).

The solution is to use a normal web browser, instead of facebook’s web browser to use your Discourse instance, or perhaps allow for other login methods if you want to let your users use facebook’s web browser.

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [May 10, 2021, 10:06am UTC](https://meta.discourse.org/t/i-have-403-error-when-login-by-facebook-app/189750/4 "2021-05-10T10:06:59Z")

</div>

Thank you,

Well, it seems not able to help fb user.  
Some local facebook users are most. But because I serve for B2B, gmail from G login is very important to contact…

Is there any chance for google fix this issue in the future?

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [May 10, 2021, 11:12am UTC](https://meta.discourse.org/t/i-have-403-error-when-login-by-facebook-app/189750/5 "2021-05-10T11:12:17Z")

</div>

Hi,

I have this idea,

Could you create an option to redirect to other URL when we have this 403?  
This help we have more flexible to help user by some instruction

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [May 12, 2021, 9:12pm UTC](https://meta.discourse.org/t/i-have-403-error-when-login-by-facebook-app/189750/6 "2021-05-12T21:12:07Z")

</div>

> [@cmdntd](#):
>
> Is there any chance for google fix this issue in the future?

From Google’s perspective, it’s a Facebook issue 😉

> [@cmdntd](#):
>
> Could you create an option to redirect to other URL when we have this 403?

This is not a Wordpress-specific question, so someone from the Discourse team might be more qualified to respond on this, but given that this is an issue between two different services unconnected with Discourse (Facebook and Google), I suspect there is not alot Discourse can do. Keep in mind this issue affects many services using Google login when sharing content on Facebook. This is not specific to Discourse.

I’m curious, if this is a B2B case that requires you only use google login, where does the need arise to support a large number of users clicking through from Facebook? In most B2B contexts, users are not interacting with a forum through a Facebook share.

Moreover, the issue seems to arise from the fact that people are being auto-redirected to google login on clicking a link to your site. Another solution here is to let guests view the site without logging in, i.e. disable the ` auth immediately` and / or the `login required` site settings.

If you’re sharing content on facebook, requiring login to view content is a somewhat odd move, on top of the B2B context?

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [May 14, 2021, 9:16am UTC](https://meta.discourse.org/t/i-have-403-error-when-login-by-facebook-app/189750/7 "2021-05-14T09:16:46Z")

</div>

There are some conficts in using app in B2B here,

Facebook is not secure and there is not enough authentication for B2B. But because of custom in local or market demand, most of facebook users will force companies to keep using fb.

These aspects in market and technology make me have this issue.

> **A link without login is very appropriate. But there are 2 links in recommendation make users be confused than only one for login. So I wonder how to redirect to other link in 403 to keep first recommend link be only.**

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [May 18, 2021, 1:43am UTC](https://meta.discourse.org/t/i-have-403-error-when-login-by-facebook-app/189750/8 "2021-05-18T01:43:27Z")

</div>

I suggest you just use one link, the link that doesn’t require the user to login. I wish I could help you further, but this is no longer a Discourse support question, it’s a question of how you’re designing your business workflows.

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [May 18, 2021, 10:41am UTC](https://meta.discourse.org/t/i-have-403-error-when-login-by-facebook-app/189750/9 "2021-05-18T10:41:55Z")

</div>

Hi,

When I use discourse wordpress plugin to login, it redirect to discourse and display forum first. This make customers misunderstood, and they try to click to forum, instead of wait for login window.

Could you make forum not to display before login window?
