Login/Register with facebook not working
-
Hi,
Suddenly your plugin is no longer working.
When I click on login it just redirects back to the same page without login me in.Please respond asap, as my customers are no longer able to log in and use the service.
Thank in advance for your quick reply!The page I need help with: [log in to see the link]
-
When trying to validate the Facebook settings I get:
“Error: cURL error 28: Connection timed out after 10000 milliseconds”Have you installed or updated any plugins before the problem started happening? Could you please tell me which ones?
If you disable all other plugins but Nextend Social Login can you log in correctly? If you can, please start enabling the plugins one by one and see when does the problem appear again and tell me the name of the plugin you enabled last.
I’m sorry, I didn’t notice your second message.
Are you aware of any changes your host made on your server? Because these cURL related messages are happening due to a server related problem:
https://docs.presscustomizr.com/article/326-how-to-fix-a-curl-error-28-connection-timed-out-in-wordpressIf you try to verify your settings again at the Facebook provider, does that work fine?
Hi,
– no changes on the server (it’s vps)
– server is up to date running latest php and MySQL on ubuntu 16.04
– NO matter how many times I try to verify the settings always get the same error
– The plugin is installed on 2 other sites as well both running on different servers and it is not working for all.Any ideas?
@retrobeatcom, I just tried to log in to your site with Facebook and it worked for me fine. It might be that Facebook server were down or the network link between Facebook and your server failed to work.
Mod: Well, I got the same timeout on your site. It seems like it works for the first time and does not work for the second time. Is it possible that your VPS provider’s firewall blocks the communication between your VPS and Facebook servers?
- This reply was modified 6 years, 5 months ago by Nextendweb.
My server provider is OVH.
They replied that no firewall is used to block any communications from/to my server…@retrobeatcom, Could you get in touch with us in email? I would like to speed up things with real debugging steps to find the cause ASAP. [email protected]
Thanks.
Just emailed you.Here are the details what we did in email. It might help others in the future:
We added the following test.php to the server: https://gist.github.com/nextend/d53b677786821483843e413f374c3881
It simply tries to connect to the Facebook’s server in verbose mode and tells us a lot of information about connection.
When the connection went fine you should see something like this:
/home/roland/www/roland/wordpress4/cc.php:25:string '{"error":{"message":"Missing redirect_uri parameter.","type":"OAuthException","code":191,"fbtrace_id":"H+IdbUPqlJE"}}' (length=117) Verbose information: * About to connect() to graph.facebook.com port 443 (#0) * Trying 31.13.91.2... * connected * Connected to graph.facebook.com (31.13.91.2) port 443 (#0) * successfully set certificate verify locations: * CAfile: none CApath: /etc/ssl/certs * SSL connection using ECDHE-ECDSA-AES128-GCM-SHA256 * Server certificate: * subject: C=US; ST=California; L=Menlo Park; O=Facebook, Inc.; CN=*.facebook.com * start date: 2017-12-15 00:00:00 GMT * expire date: 2019-03-22 12:00:00 GMT * subjectAltName: graph.facebook.com matched * issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA * SSL certificate verify ok. > POST /v2.12/oauth/access_token HTTP/1.1 Host: graph.facebook.com Accept: */* Content-Length: 47 Content-Type: application/x-www-form-urlencoded * upload completely sent off: 47 out of 47 bytes * additional stuff not fine transfer.c:1037: 0 0 * HTTP 1.1 or later with persistent connection, pipelining supported < HTTP/1.1 400 Bad Request < Strict-Transport-Security: max-age=15552000; preload < x-fb-trace-id: H+IdbUPqlJE < x-fb-rev: 4011604 < Content-Type: application/json; charset=UTF-8 < facebook-api-version: v2.12 < Cache-Control: no-store < Pragma: no-cache < Access-Control-Allow-Origin: * < Expires: Sat, 01 Jan 2000 00:00:00 GMT < WWW-Authenticate: OAuth "Facebook Platform" "invalid_request" "Missing redirect_uri parameter." < X-FB-Debug: t1TeA78QX0iRD+i8lj7hTxlKSQYGnSL21OyP68ohgsB6wJBwSA/7ZOlashDG9hquXXcdG6E/m6SEn+OtbTForg== < Date: Fri, 15 Jun 2018 08:06:23 GMT < Connection: keep-alive < Content-Length: 117 < * Connection #0 to host graph.facebook.com left intact
When the connection fails It means that you server cannot connect to Facebook’s server. It might be a misconfigured network, ipv6, firewall and such. Probably you will need to get in touch with your hosting provider as it requires network knowledge.
bool(false) Verbose information: * Hostname in DNS cache was stale, zapped * Trying 185.60.217.20... * Trying 2a03:2880:f036:13:face:b00c:0:2... * Immediate connect fail for 2a03:2880:f036:13:face:b00c:0:2: Network is unreachable * Trying 2a03:2880:f036:13:face:b00c:0:2... * Immediate connect fail for 2a03:2880:f036:13:face:b00c:0:2: Network is unreachable * Trying 2a03:2880:f036:13:face:b00c:0:2... * Immediate connect fail for 2a03:2880:f036:13:face:b00c:0:2: Network is unreachable * Trying 2a03:2880:f036:13:face:b00c:0:2... * Immediate connect fail for 2a03:2880:f036:13:face:b00c:0:2: Network is unreachable * Trying 2a03:2880:f036:13:face:b00c:0:2... * Immediate connect fail for 2a03:2880:f036:13:face:b00c:0:2: Network is unreachable * Trying 2a03:2880:f036:13:face:b00c:0:2... * Immediate connect fail for 2a03:2880:f036:13:face:b00c:0:2: Network is unreachable * Trying 2a03:2880:f036:13:face:b00c:0:2... * Immediate connect fail for 2a03:2880:f036:13:face:b00c:0:2: Network is unreachable * Trying 2a03:2880:f036:13:face:b00c:0:2... * Immediate connect fail for 2a03:2880:f036:13:face:b00c:0:2: Network is unreachable * Trying 2a03:2880:f036:13:face:b00c:0:2... * Immediate connect fail for 2a03:2880:f036:13:face:b00c:0:2: Network is unreachable * Trying 2a03:2880:f036:13:face:b00c:0:2... * Immediate connect fail for 2a03:2880:f036:13:face:b00c:0:2: Network is unreachable * Trying 2a03:2880:f036:13:face:b00c:0:2... * Immediate connect fail for 2a03:2880:f036:13:face:b00c:0:2: Network is unreachable * Trying 2a03:2880:f036:13:face:b00c:0:2... * Immediate connect fail for 2a03:2880:f036:13:face:b00c:0:2: Network is unreachable * Trying 2a03:2880:f036:13:face:b00c:0:2...
@retrobeatcom, there was 2 different users today with the same error like yours. It might be that there is an error with the Facebook server with ip –
185.60.217.20
as others have connection issues with this very same server. Maybe you are behind a dns cache and the name resolution gives an old ip address to the host. I’m not sure.In Nextend Social Login version 3.0.11, we have added a tool which allows your to easily test the connection with providers. You can reach it in Nextend Social Login -> Right top menu -> Debug -> There will be connection test link for each provider.
Thanks for the reply!
Currently, all my servers are connecting successfully to Facebook.PS. This plugin is getting better and better with every update!
The debug option is super handy for sure.
Keep up the good work guys!Thank you @retrobeatcom, we try to improve Nextend Social Login with new experiences ??
- The topic ‘Login/Register with facebook not working’ is closed to new replies.