« Older: Feedburner changes coming soon  Newer: w(t)f video hour #31 »

Facebook Connect   

A quick personal wiki/how-to entry on getting the Facebook connect plugin working with a custom Wordpress theme.


I spent a good part of the day setting up the Facebook Connect plugin over at Motoringfile. I also set it up here, but haven’t spent nearly as long tweaking it. That means it’s personal wiki time! Weeeeeee

This plug-in does require a few things to work correctly.

You need to add this to the html line in header.php.

xmlns:fb=”http://www.facebook.com/2008/fbml”>

Also in the header you should have

<?php wp_head(); ?> before your closing </head>

In the footer, you need

<?php wp_footer(); ?> right before your </body>

Your theme should be widgetized. There is a code chunk at the plugin site if it’s not. I’ll be writing this up soon as well.

Once you do everything you need to do to get the plugin installed and configured so it works in your theme, then it’s time to make it look good in your theme as well.

The easiest way to do this is to copy the style from index.php. This includes the call to header.php and any styles that happen before the loop. You will also want to grab the call to footer.php. Paste all of that into the top and bottom of the following files.

  • myhome.php
  • community.php
  • userprofile.php
  • invitefriends.php

Once that is done, it should fit nicely into your theme. Don’t look at this one, yet. Go over and check it out at Motoringfile.com instead.

Finally, if you want to remove the check from the box in the comments, you will need to edit fbConnectInterface.php. Find the following line on or around line 47.

echo &#8216;<input style="width:20px;" type="checkbox" name="sendToFacebook" id="sendToFacebook" checked="checked" />&#8216;.__(&#8216;Publish this comment to Facebook&#8217;, &#8216;fbconnect&#8217;);

And remove the part that says

checked="checked"
Save and upload back to the fbconnect folder.

I am available for questions or to assist you should you need it.




« Older: Feedburner changes coming soon  Newer: w(t)f video hour #31 »

One Response to “Facebook Connect”

  1. Facebook Connect mod | donburnside.com Says:

    [...] might remember my Facebook Connect how-to that I posted back in January. I got a request about how to modify the widget in the shape of a [...]

Leave a Reply

Comment moderation in full effect!

All comments at donburnside.com are moderated by my first rate team of robot warriors, ready to do battle with all the nare-do-wells that stalk the interwebs!

Besides, it's only your first comment (per IP address if you are commenting from work and home) that the robot warriors have to approve. After that it should be clear saling! If not, contact db and I'm sure he'll hook you up.

Finally, for those of you in the know, Markdown is available as it a very small set of HTML tags. If you are scratching your head, don't worry, it's just geek stuff. You can still comment!

Thanks for stopping by!

Recent Posts

Subscribe

donburnside.com is Digg proof thanks to caching by WP Super Cache