It is a great idea to have a Facebook fan page for your company, club or organization.
This is a minor hack of the Fotobook plugin for WordPress by Aaron Harp. Fotobook is originally meant to apply your personal photo albums into WordPress, but we’re going to make one small code tweak to instead pull the albums from the fan page that we administer.
After installing the plugin, go ahead and activate it and grant the permissions to your Facebook account.
Next, visit your Facebook fan page, and click into an album so you’re viewing all photos in one particular album. In the address bar you’ll see a &id=123123123. Copy that ID number.

In the plugin directory open the fotobook.php file and head down to line 243 and look for this code.
$uid = $session['uid'];
Swap that code for this
//$uid = $session['uid'];
$uid = 123123123;
With the 123123123 being the ID code for your fan page.
If you have a custom URL set for your fan page you might notice that the album photos are not showing. To correct that move down around line 809 in fotobook.php and look for:
if(!is_numeric($id)) return false;
And code it out of use by adding // in front so that it now looks like
//if(!is_numeric($id)) return false;
Back in the plugin administration page, go ahead and import your albums. And you should be good to go!
With a thanks to B. Thibault in the forums at the Fotobook Application Page.







Nickk
February 1st, 2010
Were you ever able to figure out how to cause fotobook to pull in the album profile image? Your technique worked great except for that. I just basically get a missing image icon next to the album description
Chad Coleman
February 2nd, 2010
I actually haven’t had a problem with the album profile image loading. I’m not sure what could be going wrong there.
Nickk
February 2nd, 2010
Hmmmm, this is what I’m running into:
http://revivaloutreach.net/blog/photos/
I figured out how to remove that broken image completely from the page (though haven’t on this page) but would prefer to have a image there.
Odd
Chad Coleman
February 2nd, 2010
Strange. You could try to completely remove the plugin and disassociate it with your FB account, and start over. That’s all that I can think of, since this approach is a bit buggy. I’ve had to start over in that same manner before, to get it to work properly.
Nickk
February 2nd, 2010
Hmmm. I’ll give it a go. Thanks for your help though in laying out the process to begin with. It was easy to get going
web
February 3rd, 2010
Great hack, thanks!
Chad Coleman
February 9th, 2010
I’ve found the issue with album photos not showing, and have updated the post.
You’ll need to comment out
if(!is_numeric($id)) return false;around line 809 in fotobook.phpNickk
February 9th, 2010
Fantastic!
Great job, you’ve got some skills!
New York Herald
February 24th, 2010
Fotobook looked great until we bumped into the inability of importing from fan pages.
This is just what we were looking for, thanks!