Strange "login with social media" connection issue.

May 7, 2014 1.1k views
I've got a Word Press plugin that allows my users to login to the site with social media accounts like Facebook for example. To do this you have to create a facebook app for it to connect. I've done all this but my site sit's in a continual loading state without ever making the connection. You can see what I'm talking about here: To narrow this down to a server issue, I tried installing the exact same plugin/version on a site for both this site as well as another with a completely different host. The other one with the other hosting company is working as expected. For the site here on DO, you try to log in but it just gives a set of continual loading bars but it does not connect. Any ideas? Could it be something like memecache or varnish doing this?
3 Answers
Are you seeing any error messages in your logs? I noticed this in Chome's web console: 500 (Internal Server Error)

Try turning on Wordpress debugging to see if you can get some more error output:
This is what I saw in my nginx error log,
Here's the culprit:

2014/05/20 21:30:37 [error] 1037#0: *11685 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught exception 'Exception' with message 'Facebook needs the CURL PHP extension.' in /var/www/wp-content/plugins/edd-social-login/includes/social/libraries/facebook/base_facebook.php:19

You should be able to solve that by installing php5-curl:

sudo apt-get install php5-curl
Have another answer? Share your knowledge.