The easy way would be to use the Facebook Comments plugin. Facebook will give you a zero-code solution with interactivity back and forth from your site to Facebook (comments on your site can appear on Facebook and vice-versa) as well as a full administration panel. For that you give away full control over your visitors' comments, get to be stuck with Facebook's visualization and color scheme and are chained forever in using Facebook authentication only (I don't see them offering a Twitter option any time soon).
So I went for the hard(er) way. The problem consists of two parts:
- Need to make it for people to login on the site and share their comment on Facebook
- Need to have posts automatically published on Facebook
- Comments that are made on Facebook should be imported on WordPress
[caption id="attachment_22" align="alignleft" width="300" caption="Posting comments and sharing on Facebook with"][/caption]
The first part was achieved with Facebook Connect by Adam Hupp. It's a pretty straightforward plugin, with little work needed to integrate with the site (mainly adding a PHP code widget to call the fbc_display_login_button function and slight editing in the comments.php to remove the link to login form and replace it with another call to show the connect button). The plugin includes the option for users to post about their comment on Facebook.
The second part involves the use of the Notes application on Facebook. Facebook offer a handy feature of importing an RSS feed to be used a source for your Notes. The hardest part is finding the page that controls the feature, so here is a link to it. Just grabbing the RSS URL that WordPress creates and pasting into the Facebook form and you are done (Update: This doesn't work well, see Note #2 below)
The third part is a bit tricky. Normally, Facebook doesn't like sharing the data you have posted on it,
[caption id="attachment_28" align="aligncenter" width="300" caption="Comments coming in from Facebook"][/caption]
All in all, in the first test, this looks to be working! Reality will teach us otherwise and I will be updating accordingly ;)
// Update #1: Apparently Facebook has a signifigant lag in parsing updates from the RSS feed into Notes...
// Update #2: The Facebook import part wasn't working very much so the above setup has been changed. More at The WordPress vs Facebook Game: Round II
// Update #3: I had forgotten the RSS import setting on Facebook and it run after a week. Definitely not best choice...
No comments:
Post a Comment