Stuck at OAuth2 Facebook connector

Hi!

I followed the turorial how to setup the facebook login. I have proceed to the point where I save the server action and open the browser.

This message appears: " Can’t connect securely to this page
This might be because the site uses outdated or unsafe TLS security settings. If this keeps happening, try contacting the website’s owner."

Can someone please help me?

Thanks,
Petri1

What is your site running on? You probably have old TLS settings in place. You should select TLS 1.2

Should I check this from my hosting provider? :thinking:
I also get this error message when I open it in browser…

“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.”

All the changes sound as though they can be made inside the facebook settings for the app you created.

I searched on google and found a solution to the above error. That leads to another error. Really start getting desperate.

“URL Blocked: 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.”

Also checked that TLS 1.2 is installed

Is this all running purely from the server connect side, if so then you need to include the url to the server action step into facebook.
This should look something like
https://liveworkoutpass.com/dmxConnect/api/theNameOfYourServerAction.php
Obviously the above needs to be adjusted if you have placed your action inside a subfolder or if you have opted to use a different server side language other than php

1 Like

You mean like this: 6

Yes, however I made a mistake after https:/ add another /
I have edited my original post.

This getting blocked… :unamused:

Can you send a screenshot of the message it gives

You have wrong url !
Use https:// so you entered just one slash
Check please

petri

Thanks. I already fixed the url. Still no luck :worried:

The error message was translated to my language. But here’s another case I copied from the Google’s image search. When the page loads, it opens a blank page and the text box appears.

7

I think you may have to do this as a case of trial and error, so add all the URLs that are relative to the login operation. Just until you find what works.

In reality if you followed the tutorial, and the button that says login to facebook or whatever is linking to the Server Connect login script of
https://liveworkoutpass.com/dmxConnect/api/Security/fb_login.php then that should really be the only url you actually need to add.
Out of interest I am unsure if the facebook oauth requires the entire URL so maybe try just adding
/dmxConnect/api/Security/fb_login.php without the domain prefixing it and see if that does it.

At what stage the facebook login page were created?

Do I still have to follow the tutorial on facebook and copy/paste the code manually. And when do I need to connect the server action file with my page? Maybe I’m missing some parts of the tutorial??

Why not just follow the tutorial step by step?
It really explains everything in the order it needs to be done …

Just open the tutorial and do what is explained in each step.

Have you created the fb login page beforehand, because as following the tutorial, you have a facebook login page created?

The so called “login page” is nothing but an empty html page with an anchor button placed on it.
It does not matter at which point will you create this page with a link/anchor button on it.