It will need curl. So check your phpinfo(); run your Terminal,input
#sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
And then, Reset your apache.Input
# sudo /etc/init.d/apache2 restart
If you still have problem,edit your php.ini file (It could be in /etc/php5/apache2/php.ini ,you can search it with Terminal , input #locate *php.ini* ) add it at the last blank:
extension=curl.so
Save your php.ini and reset it again.