Facebook and HTTPS authentication - domain, ports, protocols must comply

It seems that my site has been having problems since switching to HTTPS.

If the user adds something to the basket and is on the verification page and - has already registered on Facebook - authorized using the application already

Pressing the Facebook login button will work - no problem.

If the user adds something to the basket and is on the verification page and - has not logged into Facebook already - previously authorized using the application

Click the Facebook login button to open a pop-up window asking them for their login information. After successfully logging into FB (checking by opening a new browser window) - I get this error in the console - this is what, I think, prevents it from working.

Note - this work works fine in http ...

Insecure JavaScript is trying to access the frame from the URL https://www.facebook.com/dialog/permissions.request?_path=permissions.request&app_id=115551305199328&redirect_uri=https%3A%2F%2Fs-static.ak.facebook.com%2Fconnect % 2Fxd_arbiter.php% 3Fversion% 3D11% 23cb% 3Df368597038% 26origin% 3Dhttps% 253A% 252F% 252F www. % 2Csigned_request & domain = www.iloveugly.net & perms = publish_stream% 2Cuser_likes & fbconnect = 1 & from_login = 1 & client_id = 115551305199328 from the frame with the URL https://www.iloveugly.net/View-your-cart-content.html?page=shop Domains, protocols, and ports must be consistent.

from script connect.facebook.net/en_GB/all.js:78

site:

ww w. i loveugl y. net

The facebook app settings have a domain like www.domain.net and an app url like https: //

Question:. Why should I get this error and how to resolve it? Where can I watch?

+4
source share
1 answer

Check how you configured your forwarding with a remote name. They should also point to https.

+1
source

Source: https://habr.com/ru/post/1442877/


All Articles