|
phpFlickr authentication problems: msg#00057web.flickr.api
I am trying to authenticate with phpFlickr API but I keep getting the error: Oops! The API key or signature is invalid. I am using the correct keys but I am having this problem with two different accounts. There must be something that's missing. I copied the example used in the phpFlickr site and used it in the same way: //include this file for Flickr require_once("../includes/phpFlickr.php"); //create a flickr instance $f = new phpFlickr("[API_KEY]", "[SHARED_SECRET]"); //Authenticates the user for Flickr $f->auth(); $token = $f->auth_checkToken(); // Find the NSID of the username inputted via the form $nsid = $token['user']['nsid']; // Get the friendly URL of the user's photos $photos_url = $f->urls_getUserPhotos($nsid); // Get the user's first 36 public photos $photos = $f->photos_search(array("user_id" => $nsid, "per_page" => 36)); // Loop through the photos and output the html foreach ($photos['photo'] as $photo) { echo "<a href=$photos_url$photo[id]>"; echo "<img border='0' alt='$photo[title]' ". "src=" . $f->buildPhotoURL($photo, "Square") . ">"; echo "</a>"; $i++; // If it reaches the sixth photo, insert a line break if ($i % 6 == 0) { echo "<br>\n"; } } Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/yws-flickr/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/yws-flickr/join (Yahoo! ID required) <*> To change settings via email: mailto:yws-flickr-digest-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx mailto:yws-flickr-fullfeatured-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx <*> To unsubscribe from this group, send an email to: yws-flickr-unsubscribe-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Hot tags: 00057, Cal Henderson |
|---|---|
| Next by Date: | Most used Tags ( > 100): 00057, manoo379 |
| Previous by Thread: | Hot tagsi: 00057, Cal Henderson |
| Next by Thread: | Most used Tags ( > 100): 00057, manoo379 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |