This problem has two solutions:
Hope this works!
Source : http://stackoverflow.com/questions/5114597/how-to-solve-problem-of-curlexception-6-name-lookup-time-out-error-in-facebook
- In the base_facebook.php, you will find api-read.facebook.com.Try to ping it through command line. If it does not respond change it to api.facebook.com in base_facebook.php.
- If the above didn't work, revert it back and change CURLOPT_CONNECTTIMEOUT => 10 to CURLOPT_CONNECTTIMEOUT => 60
Hope this works!
Source : http://stackoverflow.com/questions/5114597/how-to-solve-problem-of-curlexception-6-name-lookup-time-out-error-in-facebook