Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I get phpFlickr to return the original image?
    primarykey
    data
    text
    <p>This code works perfectly: </p> <pre><code>$f = new phpFlickr(FLICKR_API_KEY, FLICKR_API_SECRET); $f-&gt;setToken(FLICKR_AUTH_TOKEN); // Next line is just WordPress providing the photoset ID. $mySetID = get_post_meta($post-&gt;ID, 'Flickr set ID', true); $mySet = $f-&gt;photosets_getPhotos($mySetID, NULL, NULL); foreach ($mySet['photoset']['photo'] as $photo) { echo '&lt;div&gt;&lt;img src="'. $f-&gt;buildPhotoURL($photo, 'large') .'" alt="" /&gt;&lt;/div&gt;'; } </code></pre> <p>...until buildPhotoURL is told to fetch the "original" size, at which point the URL returned is something like "http://farm6.static.flickr.com/5607/5332878962__o." which is obviously not valid. </p> <p>While everything I've found through searches seems to agree that doing this requires some "originalsecret" and "originalformat" values that are barely mentioned in Flickr's own documentation, and phpFlickr does seem to <a href="http://code.google.com/p/phpflickr/source/browse/trunk/phpFlickr.php#305" rel="nofollow">try and use them</a>, they're clearly not being fetched by default and I've yet to see someone post code for how to actually <em>provide</em> them. I've tried calling $f->photos_getInfo() just before the echo line, passing in various things to no effect and I'm starting to feel like I'm missing something everyone thinks is obvious, even though nobody has <a href="http://phpflickr.com/forums/search.php?PostBackAction=Search&amp;Keywords=original&amp;btnSubmit=Search&amp;Type=Topics" rel="nofollow">ever produced a valid response</a>(that I can find) to repeated questions about it on the phpFlickr forum.</p> <p>Note:</p> <ul> <li>This <strong>is</strong> a Pro account.</li> <li>We <strong>are</strong> authenticating properly(these are private sets and they work fine for all other sizes).</li> <li>Access to the original size in Flickr's privacy settings is set to "Anyone."</li> </ul> <p>Ideas?</p>
    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.
 

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