Not signed in (Sign In)
Welcome, Guest

Did you know that there is a whole world of functionality you're not seeing? If you have an account, sign in now.

If you don't have an account, apply for one now.

Bottom of Page
phpFlickr Features: Trouble Authenticating
  1.  
1 to 3 of 3
Jul 11th 2007
Hi everyone,
I'm working on a file that will upload photos to Flickr but I'm having trouble with the included auth.php file. When it redirects my page to Flickr I get a " Oops! The API key or signature is invalid." error. I know the API key and secret I put into the file are correct, anyone have any other ideas as to what might cause an error like that? Thanks in advance, and also thanks to the writers of phpFlickr (it's amazing).

Mike
Oct 17th 2007
Hi ,

I am also facing same problem,
Please let us know if any body knows this issue.

Thanks in advance
Aug 6th 2008
first check yours api key status it is active or not then set the call back url in phpFlickr2.2.0 u already have a auth.php file copy paste this script u get the authToken set it it will never expire

$api_key = "XXXXXXXX";
$api_secret = "XXXXXXXXX";
$permissions = "write";
ob_start();
require_once("path to the phpflickr class");

$f = new phpFlickr($api_key, $api_secret);

if (empty($_GET['frob'])) {
$f->auth($permissions, false);
} else {
$token = $f->auth_getToken($_GET['frob']);
echo "use this token to authenticate: "$token['token'];
}
use this to get the auth token when u get it set it
i recommend to set token in yours include file
using function

$f->setToken("YOUR-TOKEN-NUMBER-GOES-HERE");

set your url where u redirect it in my case i set it as
http://localhost/php_flickr/phpFlickr/somefile.php
  1.  
1 to 3 of 3
Top of PageBack to discussions