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).
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