Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Sadly, you have to do it as a separate query. You have to get the users galleries (first graph API call). then find the gallery ID you want and request the photos (second graph API call) then parse through the photos to find the one you want. Finally you have to request that photo.</p> <p><strong>-------------------Update:---------------------------</strong></p> <p>I'm not a very proficient php developer, but i use facebook api all the time with javascript or actionscript. The basic premise is to call the graph api, and it will return a json object of the result. Use getFile or Curl to load the graph api responses.</p> <p>You can test your graph api calls here: <a href="https://developers.facebook.com/tools/explorer/?method=GET&amp;path=663032752" rel="nofollow">https://developers.facebook.com/tools/explorer/?method=GET&amp;path=663032752</a></p> <p>so try and walk that through from the graph api. Get the user galleries, then get the photos, then get the one you want.</p> <p>To get the albums, call </p> <p>"https://graph.facebook.com/me/albums?access_token="._accessToken;</p> <p>To get the photos in an album you call it using:</p> <pre><code>https://graph.facebook.com/"._albumID."/photos?access_token="._accessToken; </code></pre> <p>And then to get the individual photo you would get the photo's ID property and call that. sometihng like:</p> <pre><code>"https://graph.facebook.com/".your_photo_id; </code></pre> <p>I think using CURL is a good approach, but I'm weak on php, so use what you are comfortable with.</p>
 

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