title: Facebook SDK error: uncaught curlexception: 28: connect() timed out! thrown in php
body: <p>I just follow same code from <a href="https://github.com/facebook/php-sdk/" rel="nofollow">Facebook SDK example</a>.</p>
  
  <p>If FB App point to my local desktop, it will get Facebook uid and user basic information (ex email) if APP get permission from OAUTH request.</p>
  
  <p>But when I upload files to server, executing <code>$facebook-&gt;api('/me');</code></p>
  
  <blockquote>
    <p><strong>Fatal error: Uncaught CurlException: 28: connect() timed out! thrown in
    /xxx/src/facebook.php on line 622</strong></p>
  </blockquote>
  
  <p>I still can't figure out why. It comes from CURL or SSL setting?
  My remote server support SSL and CURL is enabled. My local is only CURL but no SSL support.</p>
  
  <p>I think my Facebook SDK is old version, only <code>facebook.php</code> without <code>base_facebook.php</code>.
  I try to use new version but can't run any program because crt error.</p>