RandomByte :: Forum :: Wiki
Writing /home/ecornell/wiki_data/meta/falbum/setup_problems.meta failed
 

Issue

FROB / Flickr API Key Error

What can I do about the following error?

  • Error: Unable to get frob value (DESPITE successfully completing the two steps. at least it seems its successful, i get no acknowledgement from flickr that anything as ahppened at all, i only get a blan page on activiating for my flickr account.)

Array (

  [stat] => fail
  [code] => 100
  [message] => Invalid API Key (Key has expired)

)

Trying again…

Error: Unable to get frob value again - Try clicking on the FAlbum optinos tab again. \nArray ( [stat] ⇒ fail [code] ⇒ 100 [message] ⇒ Invalid API Key (Key has expired) )


I spent some considerable time tracking this down and the answers posted below this are either not related or less than helpful, certainly confusing.

The error message is telling you what the problem is. The API key has expired. You need to get your own.

First, sign into your Flickr account then apply for an API key here:

www.flickr.com/services/api/key.gne

If all is OK you'll be given a key and asked to write it down. Near the top of the page you'll see a link “Your API Keys”. Go there. The page will show you the key information. At the bottom is a link “Edit key details”, click it.

You'll see the API key at the top and underneath it, a Shared Secret key. Make a note of that as well.

- Enter your blog's title and a short description. - Change the authentication type to Desktop Application not Web application which is the default. - Save

Go back to the Falbum files you downloaded and unzipped. Find the file in the falbum root directory called FAlbum.class.php Open it with a plain text editor. You could use Notepad, I use a Freebie called UniRed. Search for the following two lines (please note - the key may change so you're looking for something that looks similar):

define('FALBUM_API_KEY', 'c951347dfrg15f06be765e5b561e11');

define('FALBUM_SECRET', 'ca7bt09u1e54f0da');

Replace the API key in the top line with your API key Replace the Secret in the second line with your shared secret. Double check you've typed the keys in right. Make sure they still have the single quotes round them. Save

Upload the file to your host.

In WP admin go to Options>FAlbum and the page should now load without the error. Step 1 should present you with a Flickr page asking you to approve usage of your photos by your blog. Approve it. Step 2 will set the token and take you to a setup page for the album.

Have fun.

two more bugs in FAlbum 0.7.1

  1. the album title doesn't show up on albums-pages
  2. _current_wordpress_theme - custom falbum.css is not loaded

the following diff fixes both bugs

diff -Nau old/FAlbum.class.php new/FAlbum.class.php
--- old/FAlbum.class.php	2007-11-03 04:53:53.000000000 +0100
+++ new/FAlbum.class.php	2008-07-21 23:44:15.000000000 +0200
@@ -244,6 +244,7 @@
 
 			$this->template->set('css_type_thumbnails', $this->options['display_dropshadows']);
 
+			$this->template->set('photos_label', fa__('Photos'));
 			$this->template->set('remote_url', $this->options['url_falbum_dir']."/falbum-remote.php");
 			$this->template->set('url_root', $this->options['url_root']);
 
diff -Nau old/wordpress-falbum-plugin.php new/wordpress-falbum-plugin.php
--- old/wordpress-falbum-plugin.php	2007-07-25 19:39:08.000000000 +0200
+++ new/wordpress-falbum-plugin.php	2008-07-21 23:57:22.000000000 +0200
@@ -598,11 +598,9 @@
 		
 		$style = $falbum_options['style'];
 		
-		
-   	
 		if ($style == '_current_wordpress_theme') {
 
-			if (file_exists($tdir_uri."/falbum/falbum.css")) {
+			if (file_exists($tdir."/falbum/falbum.css")) {
 				$cssUrl = $tdir_uri."/falbum/falbum.css";
 			} else {
 				$cssUrl = get_settings('siteurl')."/wp-content/plugins/falbum/styles/default/falbum.css";

FAlbum* table not found erros

Manually creating the table fixed those errors for me:

CREATE TABLE wp_falbum_cache ( ID varchar(40) PRIMARY KEY, data text, expires datetime );

Hope that helps you guys!


Fix Broken EXIF link in 0.7.1 Default Style

Open falbum/styles/default/photo.tpl.php and change line 95 to:

<a href=“javascript:falbum.showExif('<?php echo $exif_data; ?>')”><?php echo $exif_label; ?></a>

Note that the original version omits the “falbum.” portion, thus breaking the code.

 
falbum/setup_problems.txt · Last modified: 2008/07/21 15:23 (external edit)
 
Recent changes RSS feed Creative Commons License