jaredhanson / passport-facebook

Facebook authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-facebook/?utm_source=github&utm_medium=referral&utm_campaign=passport-facebook&utm_content=about
MIT License
1.3k stars 446 forks source link

2.1.0: Facebook login not working (timeout) #153

Open akyoto opened 8 years ago

akyoto commented 8 years ago

No error messages, it just results in a timeout and the login never works. I downgraded to 2.0.0 and it works with the older version. Just thought I'd let you know. I wonder if other people have the same problem.

cruiser12 commented 8 years ago

i have same issues, and it happens sometimes... cant reproduce.

cruiser12 commented 8 years ago

i also downgraded to 2.0.0 and now it works. Its odd, in a local enviroment it works, but on a production server it fails with 2.1.0

azazdeaz commented 8 years ago

I think it's related to https://github.com/jaredhanson/passport-facebook/issues/150

nodkz commented 8 years ago

Problem with hosts which serve your requests.

Go to http://www.host-tracker.com/ and paste graph.facebook.com for http check. This service made about 40-50 requests from different locations, and you obtain ip addresses of graph.facebook.com in different countries.

I recommend you copy one ip which starts from 31. and add this ip address to your /etc/hosts file in such form:

31.13.66.1 graph.facebook.com

If it does not help try choose another ip.

PS. I have such Error: connect ETIMEDOUT 31.13.90.2:443, so with ip 31.13.66.1 error dissapered.