title: Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in facebook_base.php
body: <p>A week ago I started to notice a problem with the php sdk file -  facebook_base.php</p>
  
  <p>sometimes when connected facebook member visit the site and the auto-login trigger I get 2 errors and sometimes only the first error (that is why I used it in my problem title)+ the site shows up but without showing that user is connected.</p>
  
  <p>after a refresh no error is shown and the site for connected member shows up.</p>
  
  <p>I've tried new version of php API and also old ones that worked and still problem remained.</p>
  
  <p>any ideas what can cause the problem?</p>
  
  <p>UPDATE: similar problem spotted here: <a href="https://developers.facebook.com/bugs/207087046099691?browse=search_512a0e37e7ecf6136191651" rel="nofollow">https://developers.facebook.com/bugs/207087046099691?browse=search_512a0e37e7ecf6136191651</a></p>
  
  <p>this is the errors:</p>
  
  <pre><code>Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in /home/admin/domains/mydomain.com/public_html/includes/base_facebook.php on line 970
  
  Warning: curl_setopt_array() [function.curl-setopt-array]: Array keys must be CURLOPT constants or equivalent integer values in /home/admin/domains/mydomain.com/public_html/includes/base_facebook.php on line 946
  </code></pre>