Faux Facebook Connect Plugin Allows Facebook Users to Comment on WPMU Blogs

fbconnectA fantastic new plugin has been released that is going to be very useful to many WPMU site owners. It’s called Faux Facebook Connect and it allows Facebook users to easily comment on WPMU blogs. The plugin is mainly JavaScript and provides single sign on and avatars. The great thing about it is that it doesn’t change anything in the database or add any users. Plugin author Thorsten Ott credits Beau Lebens for the initial idea, and you can visit his site for a more technical explanation of how the plugin operates. I’m going to show you how to use it on your WPMU site.

Installation is quite simple:

fbconnect2

1. Upload the faux-facebook-connect folder to the /wp-content/plugins/ directory
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. Visit Settings=>Faux Facebook in your wp-admin area and follow the instructions on that page.

WordPress MU Integration involves a couple of extra steps:

To make sure the script loads out of a theme context or other urls use the fauxfb_plugin_url filter as shown below:

1
2
3
4
add_filter( 'fauxfb_plugin_url', 'fauxfb_plugin_url' );
function fauxfb_plugin_url() {
return get_bloginfo('template_url') . '/plugins/faux-facebook-connect';
}

Placing this code in the functions.php of your theme would cause the script to search in the plugins folder of the template for the faux-facebook-connect folder.

It could be activated by putting the following line in your functions.php file just after this call.

1
require_once( 'plugins/faux-facebook-connect/faux-facebook-connect.php' );

Make sure to follow the Frontend Setup Procedure in the settings page to get the buttons showing up on your site.

If you’re not intimidated by getting your own Facebook API key, go ahead and give this plugin a try! I’m sure the author would appreciate your feedback.