Topic-icon Facebook Given URL is not whitelisted in Client OAuth Settings

Active Subscriptions:

None
So, I am receiving the following error when attempting to login through the frontend.

Given URL is not whitelisted in Client OAuth Settings: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.

I am using a staging environment and I added the environment url to Facebook. I have attached my Valid OAuth redirect URLs for your review.

Your assistance will be greatly appreciated.

Eli
The topic has been locked.
Support Specialist
10 years 4 months ago #56716 by mel
Those redirect URIs look correct to me.

* Could you try temporarily removing any IP whitelist settings that you have and see if there's any effect? Once we get the login via Facebook working, you can also re-set those up.
* Please review our Facebook application setup guide to make sure you've followed our steps for setting up the application.
* I'd also suggest running Autotune in our JFBConnect backend to compare your settings to our recommended values to see if there are any other issues as well.

This should hopefully help you move forward, but please let us know if you continue to have issues.

-Melissa
The topic has been locked.
Active Subscriptions:

None
I have no ip whitelist settings in the app and I have run autotune and all the settings are as recommended. I have also run the error check and everything seems to be ok.

Eli
The topic has been locked.
Support Specialist
10 years 4 months ago #56721 by mel
Ahh, looking at your site and the screenshots again, you're missing the subfolder from the redirect URI's:
http://staging15.stylewithwillie-m.com/swwm2/index.php....
instead of
http://staging15.stylewithwillie-m.com/index.php....

Alex also just tested the login and it appears to be working, so let us know if you continue to have problems.

-Melissa
The topic has been locked.
Active Subscriptions:

None
Great Mel. I have to make this change in the app?

Eli
The topic has been locked.
Active Subscriptions:

None
Great Mel. I have to make this change in the app?

Eli
The topic has been locked.
Support Specialist
10 years 4 months ago #56726 by mel
Yes, in the redirect URI settings in the Facebook App. (Settings > Advanced > Valid OAuth redirect URIs)
The topic has been locked.
Active Subscriptions:

None
Oh goodness, what a silly mistake. Thank you for catching that. Eli
The topic has been locked.
Active Subscriptions:

None
Mel. I see where the issue lies. I am able to log in via Facebook on the live site but not on the staging site. I want to use staging, of course, to test it first. I have edited the Facebook urls as noted by the attached and I am still receiving the error of not authorized urls,

Eli
The topic has been locked.
Support Specialist
10 years 4 months ago #56733 by mel
The authorized URLs would probably not be the problem in that case. My guess is that it's the Site URL setting. In your app on Facebook, go to Settings > Basic tab. Make sure that the following are for the staging site and not the live site: Site URL, secure canvas URL, and secure page tab URL. Also make sure that the App Domain would work for the staging as well. Let me know if this helps and when you're ready for live, you can change them back for the live site.
The topic has been locked.