tl; dr: I get a blank pop-up screen after logging in to Facebook on Edge and it doesnβt return to my site.
Hello. I have a Facebook workflow for logging into Chrome and Firefox and Internet Explorer 11, but when I try to use the same thread with the Edge browser in Windows 10, it fails. I am using javascript. I tried to find the answers, but did not find something relevant.
What will happen
On Edge, I click on the login button, a popup appears, and I enter my credentials. After clicking "login" on the Facebook popup window, it redirects to a blank page. The URL of this blank popup page has many request parameters, and one of them is the redirect address to my site that I provided, but the popup remains blank and I am faced with the terrible "White Screen of Death". If I go to facebook.com, I will see that I am logged in, so the login has earned backstage.
I went ahead and tried the official Facebook JS example taken from my development site. This one does not work !
I checked several other Facebook logins on other sites and their flow works. Something very strange is happening, and I seem to have exhausted ideas on how to debug this.
Here are some request parameters (converted to JSON for short) with everything that seemed hidden:
Popup window url when i am login page. There are terrible mistakes, but I think that they are connected only with the login failure.
{ "version": "42#cb", "domain": "XXXXXXXXXXXXXXXX", "origin": "http%3A%2F%2FXXXXXXXXXXXXXXXXXXXX", "relation": "opener", "frame": "XXXXXXXXXX", "error": "access_denied", "error_code": "200", "error_description": "Permissions+error", "error_reason": "user_denied", "e2e": "%7B%7D", "display": "popup" }
This is the URL when I get a blank page. Again, this whole thread works on Chrome and IE 11 on Windows 10, but not on Edge (not yet tested Firefox).
{ "version": "42#cb", "domain": [ "XXXXXXXXXXXXXXX", "XXXXXXXXXXXXXXXXXXXXXXXXXX" ], "origin": [ "http%3A%2F%2FXXXXXXXXXXXXXXXXXXXXXXX%2Ff3ab15014b2d67e", "1" ], "relation": "opener", "frame": "XXXXXXXXXXXXXX", "display": "popup", "scope": "email,public_profile,user_friends,user_events,user_location,rsvp_event", "response_type": "token,signed_request", "client_id": "XXXXXXXXXXXXXXXXXXXXXX", "ret": "login", "sdk": "joey", "ext": "XXXXXXXXXXXX", "hash": "XXXXXXXXXXXXX" }
What am I missing? Any ideas?
Thanks.