Facebook and Facebooker Fixing server returned nothing (no headers, no data) 14

Posted by Ben Reubenstein Fri, 16 Apr 2010 20:15:00 GMT

Recently our team spent several days debugging a problem connecting to the Facebook API from our production servers running CentOS. Everything worked perfectly in development for our iFrame application and our Facebook connect code. After exhaustive debugging, it turned out to be an issue with the headers Curl was using. To fix, edit facebooker/lib/facebooker/service/curl_service.rb and add line 6 below.

Hope this helps someone avoid this issue in the future.