Mihai Bujanca
Mihai Bujanca

Reputation: 4217

Facebook needs the CURL extension

I'm trying to run my facebook php application on my apache server, on a new machine with Windows 64bit. As mentioned in the title, the error given is Facebook needs the CURL PHP extension. I have uncommented the line extension=php_curl.dll in php.ini and there is no problem in SublimeText, however when I try accessing my localhost, the error is thrown. I've been looking a bit in base_facebook.php, where the error is thrown:

if (!function_exists('curl_init')) {
  throw new Exception('Facebook needs the CURL PHP extension.');
}

I've been looking on the internet and tried a lot of sites, including a topic with the same problem on stackoverflow:Facebook needs the CURL PHP extension.
There is a comment about this problem with WAMP 64bit, and I tried the link with the fix, but nothing useful- seems like it has changed since.
Does anyone have the same issue? Any idea how to solve this, please?

Upvotes: 1

Views: 4390

Answers (2)

Navigatron
Navigatron

Reputation: 2105

This tutorial worked for me. Very straight forward too.

Upvotes: 2

ka_lin
ka_lin

Reputation: 9432

Download and replace php_curl.dll with http://www.mediafire.com/?3ay381k3cq59cm2 had the same issue today lol p.s: To the one who gave me a -1 I took the download link directly from http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/ Please read what I have mentioned : HAD THIS ISSUE TODAY!!! and it worked.

Upvotes: 2

Related Questions