title: SSL read: errno 104 for some users only
body: <p>I am querying graph api with a FQL statement via CURL which is working fine for all users except a few.</p>
  
  <p>When the CURL request is executed it raised the following error</p>
  
  <blockquote>
    <p>SSL read: error:00000000:lib(0):func(0):reason(0), errno 104</p>
  </blockquote>
  
  <p>I have a couple of test accounts out of which 2 are working and 1 is not I have tested by:</p>
  
  <p>Making the user Admin / Developer { as app is in sandbox }
  Secure and unsecure browsing</p>
  
  <p>The 2 accounts worked on all above conditions but the one not working didn't for each condition.</p>
  
  <p>I was wondering if Facebook have some different classes of Users due to which its happening, may be, no idea</p>
  
  <p>I cross checked the same accounts with other applications and the same result is there hence, I am assuming this is something related to the User itself. Google for it but no success.</p>
  
  <p>Any idea or solution to fix this.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Here is the code</p>
  
  <pre><code>$graph_api_query = 'https://graph.facebook.com/me/friends?access_token=' . $this-&gt;loadAccessTokenFromDB() . "&amp;fields=name,id,picture";
  $graph_api_result = send_request($graph_api_query, 'GET'); ## the curl call 
  foreach($graph_api_result-&gt;data as $friendData){
      $friends[] = array(
          'id' =&gt; $friendData-&gt;id,
          'name' =&gt; $friendData-&gt;name,
          'picture' =&gt; $friendData-&gt;picture-&gt;data-&gt;url
      );
  </code></pre>
  
  <p>another example </p>
  
  <pre><code>$fql_query_url = 'https://graph.facebook.com/fql?q=';
  $fql_query_url .= '{"friends+count":"';
  $fql_query_url .= 'SELECT+uid+,+last_name+,+pic+,+friend_count+FROM+user+WHERE+uid+IN+(';
  $fql_query_url .= 'SELECT+uid2+FROM+friend+WHERE+uid1=me())';
  $fql_query_url .= '+ORDER+BY+friend_count+DESC';
  $fql_query_url .= '",';
  $fql_query_url .= '"my-friends-count":"';
  $fql_query_url .= 'SELECT+friend_count+FROM+user+WHERE+uid=me()';
  $fql_query_url .= '"}';
  $fql_query_url .= '&amp;access_token=' . $this-&gt;session-&gt;userdata('access_token') ; #$this-&gt;facebooksession-&gt;access_token;
  #echo $fql_query_url;
  $fql_query_result = send_request($fql_query_url, 'GET');
  </code></pre>
  
  <p>working userID is <code>656328662</code></p>
  
  <p>userID not working is <code>584488596</code></p>
  
  <p>Regards</p>