WordPress Error: Facebook needs the cURL PHP extension

in Wordpress by

Facebook needs cURL PHP

Plugin could not be activated because it triggered a fatal error.

Fatal error: Uncaught exception ‘Exception’ with message ‘Facebook needs the CURL PHP extension.’ in */wp-content/plugins/facebook-comments-for-wordpress/scripts/facebook.php:4 Stack trace: #0 */wp-content/plugins/facebook-comments-for-wordpress/facebook-comments.php(34): require_once() #1 */wp-admin/plugins.php(147): include(‘/*…’) #2 */wp-admin/plugins.php(149): plugin_sandbox_scrape(‘facebook-commen…’) #3 {main} thrown in */wp-content/plugins/facebook-comments-for-wordpress/scripts/facebook.php on line 4

If it’s the first time you run your first Facebook PHP application and get this error, you may need to follow the steps below to fix your problem.

First, make sure that you have the extension installed and enable php curl in php.ini file.
I’m using a linux debian distribution and simply run the following command in shell / terminal.
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl

If you’re using XAMPP on Windows, install php curl from here: http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/

Second, if you already have it installed, enable php curl in php.ini
Add this line to php.ini: extension=php_curl.dll

in XAMPP, you just need to uncomment extension=php_curl.dll from c:xamppphpphp.ini by removing the semi-colon and save the configuration and restart the XAMPP.

Now create a new php file and type:

Use this page to see if the server thinks curl is enabled. This line confirmed that you have cURL installed.
cURL support enabled

Febryan Paudi (940 Posts)

Febryan Paudi is Apple enthusiast. Falling in love with Apple-tech since 2008, loves Blogging since high-school. Google+

Join SenseiPhone on

Facebook https://www.facebook.com/SenseiPhone
Twitter https://twitter.com/SenseiPhone
Google+ https://plus.google.com/108865025658541181081