Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook OAuth Login stopped working

Tags:

facebook

oauth

In my website I use oauth for login via google, twitter and facebook. Since 24 hours I noticed that the facebook login does not work anymore. I get the following error message when I try to log in:

"Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings."

I am not using https but http.

Can anybody please shed some light on this new situation? Thanks.

like image 751
Liliana Amen Avatar asked Mar 18 '18 08:03

Liliana Amen


4 Answers

Just ran into this as well. Looks like Facebook started enforcing strict mode for redirect URIs this month. Resolution is to enter in your auth callback URL in the "Valid OAuth redirect URIs" field.

Look at Step 3 at this site: https://auth0.com/docs/connections/social/facebook

like image 54
pkim Avatar answered Sep 21 '22 02:09

pkim


Double check your "Valid OAuth redirect URIs". All of URLs must be set where exact as you use it (with GET params)!

For example, if you redirect URL is http://somesite.com/auth?type=facebook you cannot set just http://somesite.com/auth from now.

TIP: You can find this URL as a param in page address where you see an error message.

like image 21
Konstantin Bogdanov Avatar answered Sep 21 '22 02:09

Konstantin Bogdanov


In march 2018, facebook change Oauth url, https://developers.facebook.com/blog/post/2017/12/18/strict-uri-matching/. I use Hwioauth bundle, just solved the problem. Make sure you add all Valid OAuth redirect URIs. In my app has http://localhost:8000/

http://localhost:8000/connect/check-facebook

http://localhost:8000/connect/facebook

like image 27
chinhnguyen Avatar answered Sep 22 '22 02:09

chinhnguyen


I got the same problem with the same symptoms where the callback URL on logon pop-up with some weird app_id.

Finally, after a lot of search (rare case), I found that which caused by the conflict between Manychat Script and FB login button. (the weird app_id on pop-up comes from Many Chat).

It's just a tips for your search, I'm not sure our problem caused from the same issue.

Hope that help. Bryan

like image 44
bryanpham85 Avatar answered Sep 21 '22 02:09

bryanpham85