Facebook Photos Plugin by Joe Tan

As I mentioned in a previous post, my Coppermine and WordPress integration broke with the upgrade to 2.6 and using the defunct Coppermine plugin from stilglog. The question became how to easily embed photos from Facebook into my blog when I needed to. The Facebook Photos Plugin by Joe Tan seems to be one of the few contenders in this department, so here I am giving it a whirl.

Firstly, the plugin needs PHP5 which is annoying but inevitable as the GoPHP5 movement gains momentum. Thankfully, my webhost supports dual PHP4 and PHP5 installations. Reluctantly, I made a small addition to the .htaccess file in my WP installation folder and everything seems to be fine. The changes were:

AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4

Once configured in Settings (i.e. attaching it to your Facebook account, the plugin adds a nice little Facebook logo to admin interface.

Facebook Plugin adds a logo to the interface

Facebook Plugin adds a logo to the interface

Clicking on this link gives you a nice little embed screen. Your first choice is selecting the right album from your Facebook account through a drop-down menu. Clicking on the photo you want to embed, you have a choice in Small (max: 75×225), Medium (max: 130×130), and Large (max: 604×604):

White snow before Christmas.

White snow before Christmas.

White snow before Christmas.

A couple of limitations to the ease of use of the functionality of the plugin remain. Additional styling (borders, adding captions) to your photos can’t be done through the plugin although it drops the raw HTML code, so you can alter this by hand if you so wished. Another concern is privacy. Though the link takes you to a login page on Facebook before you can see the photo, presumably the image url can be made public by browsing through the source code.

Also, I seem to be getting this error:

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'media_admin_css' was given in public_dir/wp-includes/plugin.php on line 311.

Not to sure what is happening there but still the plugin works well enough. When I get time, I might see if there’s a fix to this problem somewhere out there.


  1. No Comments