# Facebook strict OAuth

**URL:** <https://forum.bubble.io/t/facebook-strict-oauth/24278>\
**Category:** Questions\
**Created:** [February 10, 2018, 3:35am UTC](https://forum.bubble.io/t/facebook-strict-oauth/24278 "2018-02-10T03:35:34Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueback09](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/blueback09/32/7122_2.png) [@blueback09](https://forum.bubble.io/u/blueback09)\
**Post date:** [February 10, 2018, 3:35am UTC](https://forum.bubble.io/t/facebook-strict-oauth/24278/1 "2018-02-10T03:35:34Z")

</div>

Facebook sent me an email saying in 35 days they’re going to lock down Facebook Login so that it’s more restrictive. There are instructions for ensuring the login continues to work here [Login Security - Facebook Login - Documentation - Meta for Developers](https://developers.facebook.com/docs/facebook-login/security/#strict_mode)

@emmanuel Will this cause any problems with Bubble?

An alert in my dev settings said that “[track-well.com](https://track-well.com/welcome)” would be invalidated. I added it to the valid URI list and now that alert isn’t showing.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/7/6/76585b0b1a8ceb38118a121e3dcb8295f03f1af0.jpg)

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [February 10, 2018, 6:03am UTC](https://forum.bubble.io/t/facebook-strict-oauth/24278/2 "2018-02-10T06:03:33Z")

</div>

It will cause issues if you’re doing Facebook login from page with an ID in them (for instance with a current page thing).

---

<div class="post-metadata">

**Author:** ![blueback09](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/blueback09/32/7122_2.png) [@blueback09](https://forum.bubble.io/u/blueback09)\
**Post date:** [February 10, 2018, 8:25am UTC](https://forum.bubble.io/t/facebook-strict-oauth/24278/3 "2018-02-10T08:25:30Z")

</div>

Okay, so if it’s a page like [https://foo.com/bar](https://foo.com/bar) it’ll be fine because we can put that into the valid OAuth redirect URI field, but if it’s [https://foo.com/bar/123456789](https://foo.com/bar/123456789) and the number sequence changes it won’t be fine because we can’t put all of the possible combinations into the valid URI field.

Have I got that right?

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [February 10, 2018, 6:46pm UTC](https://forum.bubble.io/t/facebook-strict-oauth/24278/4 "2018-02-10T18:46:57Z")

</div>

That’s how I understand it (but haven’t tested)

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [February 15, 2018, 11:08pm UTC](https://forum.bubble.io/t/facebook-strict-oauth/24278/5 "2018-02-15T23:08:24Z")

</div>

As an update for the community, we’re working on a way to use a generic redirect URL to avoid issues with Facebook’s changes.

---

<div class="post-metadata">

**Author:** ![rushabh](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rushabh/32/14144_2.png) [@rushabh](https://forum.bubble.io/u/rushabh)\
**Post date:** [February 16, 2018, 12:14am UTC](https://forum.bubble.io/t/facebook-strict-oauth/24278/6 "2018-02-16T00:14:30Z")

</div>

Thanks @emmanuel - looking forward seeing how you guys address this. It would be great to apply the same solution to the google sign on the plugin as well.

---

<div class="post-metadata">

**Author:** ![dwhit](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@dwhit](https://forum.bubble.io/u/dwhit)\
**Post date:** [February 16, 2018, 12:24am UTC](https://forum.bubble.io/t/facebook-strict-oauth/24278/7 "2018-02-16T00:24:23Z")

</div>

glad to see the bubble team is adding this!

---

<div class="post-metadata">

**Author:** ![rushabh](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rushabh/32/14144_2.png) [@rushabh](https://forum.bubble.io/u/rushabh)\
**Post date:** [March 5, 2018, 3:17pm UTC](https://forum.bubble.io/t/facebook-strict-oauth/24278/8 "2018-03-05T15:17:53Z")

</div>

@emmanuel The Facebook change is happening in 7 days. Do you guys know if/how you are planning to handle this?

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [March 5, 2018, 3:34pm UTC](https://forum.bubble.io/t/facebook-strict-oauth/24278/9 "2018-03-05T15:34:30Z")

</div>

It’s live

> [@\[New Feature\] Using a generic redirect URL for OAuth providers](http://forum.bubble.io/t/new-feature-using-a-generic-redirect-url-for-oauth-providers/24565):
>
> Some providers, such as Facebook, are being more strict about having an exact match between the URL your app is on when the user logs with the service, and the redirect URLs defined in the app’s definition (for instance Facebook). This can be a problem when a lot of pages have a thing as content, hence leading to an ID in the URL. To solve this issue, we’ve enabled a way to use a generic URL as a redirect URL. If you check the box in the plugin’s settings in the plugins tab, and add the URL ht…

---

<div class="post-metadata">

**Author:** ![rushabh](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rushabh/32/14144_2.png) [@rushabh](https://forum.bubble.io/u/rushabh)\
**Post date:** [March 6, 2018, 11:45am UTC](https://forum.bubble.io/t/facebook-strict-oauth/24278/10 "2018-03-06T11:45:07Z")

</div>

@emmanuel I just tried signing in using Facebook on my app with some url params & “Use Strict Mode for Redirect URIs” on, and it didn’t work.

 ![09%20PM](https://us1.discourse-cdn.com/bubble/original/3X/7/c/7cb133fecb794849717793e1b05b55ee0fbc52fc.png)

Can you provide more details on the changes you guys have made, and the expected behavior?

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [March 9, 2018, 4:41pm UTC](https://forum.bubble.io/t/facebook-strict-oauth/24278/11 "2018-03-09T16:41:43Z")

</div>

You need to change the redirect URL in facebook, as explained in the post quoted above.

---

<div class="post-metadata">

**Author:** ![rushabh](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rushabh/32/14144_2.png) [@rushabh](https://forum.bubble.io/u/rushabh)\
**Post date:** [March 10, 2018, 9:38am UTC](https://forum.bubble.io/t/facebook-strict-oauth/24278/12 "2018-03-10T09:38:59Z")

</div>

Didn’t see the quoted post. Just tested it and it works great - THANK YOU!!

---

<div class="post-metadata">

**Author:** ![hattford](https://avatars.discourse-cdn.com/v4/letter/h/ad7895/32.png) [@hattford](https://forum.bubble.io/u/hattford)\
**Post date:** [October 29, 2018, 2:22pm UTC](https://forum.bubble.io/t/facebook-strict-oauth/24278/13 "2018-10-29T14:22:50Z")

</div>

@emmanuel you should add this info into your Lesson on adding a facebook signin button on a web app. If I didn’t find your post here I would have been lost.
