title: How can I get ALL links posted by a user's Facebook friends in the last few days?
body: <p>I am trying to get all links posted by a user and his/her Facebook friends.</p>
  
  <p>I am using Facebook PHP SDK and have the following FQL so far:</p>
  
  <pre><code>$fql = "SELECT link_id, owner, owner_comment, created_time, title, summary, url, image_urls 
            FROM link WHERE owner IN 
              (SELECT uid2 FROM friend WHERE uid1 = me() LIMIT 100) 
            AND created_time &gt;= $_7ago";
  </code></pre>
  
  <p>For some reason, the above FQL works only for certain friends but gives errors for others. Does this have to do with privacy issues of these friends?</p>
  
  <p>Also, even when the query works, the process takes more than 10 seconds. Is there an alternative way to get what I am looking for?</p>
  
  <p><em><strong>Thanks.</em></strong></p>