fatal error uncaught exception 'exception' with message 'facebook needs the curl php extension


facebook-deveploper-application-iconThis error was caught in my machine due to curl package . While I was trying one theme in my linux(Ubuntu 11.10) machine I was unable to activate theme . After seeing error log in apache , I came to know that my machine requires php curl package.

Steps I did to fix this problem was:

apt-get install curl libcurl3 libcurl3-dev php5-curl

and Restart apache by

/etc/init.d/apache2 restart