title: PHP Fatal error: Call to a member function fql_query() on a non-object in /home/elankeer/public_html/hiddenfriend/index.php on line 292
body: <p>I am using facebook.php which is downloaded from <a href="http://github.com/facebook/php-sdk" rel="nofollow noreferrer">http://github.com/facebook/php-sdk</a></p>
  
  <p>Below code</p>
  
  <pre><code>$fql = 'SELECT uid FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1='.$user.') AND has_added_app = 1';
  $_friends = $facebook-&gt;api_client-&gt;fql_query($fql);
  </code></pre>
  
  <p>Throw error as below</p>
  
  <blockquote>
    <p>PHP Fatal error:  Call to a member
    function fql_query() on a non-object
    in
    /home/elankeer/public_html/friend/index.php
    on line 292</p>
  </blockquote>
  
  <p>please help me!!</p>