Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You may only use <code>fields</code> with properties that exists for objects.</p> <p>By issuing GET request to next URL you'll get list of albums ids only:</p> <pre><code>https://graph.facebook.com/me/albums?fields=id&amp;access_token=... </code></pre> <p>Same can be achieved by running next <a href="http://developers.facebook.com/docs/reference/fql/" rel="noreferrer"><code>FQL</code></a> query on <a href="http://developers.facebook.com/docs/reference/fql/album/" rel="noreferrer"><code>album</code></a> table:</p> <pre><code>SELECT aid FROM album WHERE owner=me() </code></pre> <p>Actually <code>albums</code> connection of <code>user</code> doesn't really contain list of <a href="https://developers.facebook.com/docs/reference/api/photo/" rel="noreferrer"><code>photo</code></a> objects but <a href="https://developers.facebook.com/docs/reference/api/album/" rel="noreferrer"><code>album</code></a> (which have <code>photos</code> connection). So to get photos owned by user you'll need iterate over all of his object and getting photos for every album. Again you may use <code>fields</code> argument to limit resulting data. This can be done faster if using <a href="http://developers.facebook.com/docs/reference/api/batch/" rel="noreferrer">batch requests</a>.</p> <p>Or With <a href="http://developers.facebook.com/docs/reference/fql/" rel="noreferrer"><code>FQL</code></a> it may be done like this (two tables <a href="http://developers.facebook.com/docs/reference/fql/photo/" rel="noreferrer"><code>photo</code></a> and <a href="http://developers.facebook.com/docs/reference/fql/album/" rel="noreferrer"><code>album</code></a> involved):</p> <pre><code>SELECT pid FROM photo WHERE aid IN (SELECT aid FROM album WHERE owner=me()) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload