Blank page in node.js passport facebook redirect to mobile

I create a web service based on node.js, I used passport authentication with the following setting: when calling authentication:

clientID: "AAAA", clientSecret: "BBBB", callbackURL = "http://CCCC/facebook/loggedin"; app.get('/auth/facebook', passport.authenticate('facebook', {scope : ['email', 'publish_actions', 'rsvp_event']}, {display: ['touch']})); 

Everything works fine using chrome on my desktop and I am redirected with all the parameters. However, trying to do the same on my ipad / android phone, the browser will leave me hanging:

 https://m.facebook.com/dialog/oauth?redirect_uri=http%4a%2F%2FCCCC%2Ffacebook%2Floggedin&scope=email%2Cpublish_actions%2Crsvp_event&response_type=code&type=web_server&client_id=AAAA 

with a completely blank page ...

Has anyone solved this?

EDIT : when I make my browser work, it will show the page as intended. Why would it work on the desktop, but not on a mobile device?

EDIT : seems to be a problem with mobile browser

+4
source share

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


All Articles