title: How to get All facebook photos from FQL
body: <p>I am using <code>FQL</code> to collect all Facebook photos for the application also i have 533 photos on facebook but the issue is that this <code>query</code> will return only 400 records.</p>
  
  <p>FQL QUERY</p>
  
  <pre><code>SELECT src_big,target_id FROM photo WHERE pid IN
  (SELECT pid FROM photo_tag WHERE subject='".$session_fbuserid."') OR
  pid IN (
      SELECT pid FROM photo WHERE aid IN
          (SELECT aid FROM album WHERE owner='".$session_fbuserid."' AND type!='profile')
  )
  </code></pre>
  
  <p>My Facebook Album</p>
  
  <p><img src="https://i.stack.imgur.com/ilZwr.png" alt="enter image description here"></p>