Steve's Ramblings

  • Home
  • About
  • LastFM Widgets
  • Post By Mail
  • Site Search
  • Wordbooker
Witterings from the Site owner

← The Cast List of White Christmas
The importance of testing →

WordPress and Facebook Integration

January 2nd, 2010 by Steve and tagged facebook, plugin, wordpress, WPMU


I’d been using the Wordbook app for quite a bit but I’d always found that it lacked some features that I liked. I’ve now added these functions and got it doing things how I’d like.

So rather than keep cluttering up the original wordbook application page I’ve forked by code off totally.

I created a new Facebook application called Wordbooker and then created a new plugin called Wordbooker in the WordPress Extensions site.

Upgrading from the Forked Version.

As this is basically a new application its a bit messy as doing a normal removal of the old forked version will remove any record of posts/comments made with the forked version.

If you wish to retain that history then you need to back up the existing wordbook_postcomments table BEFORE you remove the forked version of wordbook.

Go into the options page for Wordbook and reset the configuration for wordbook

From the plugins page de-activate the wordbook plugin.

Delete the wordbook directory from wp-content/plugins

Upload the wordbooker directory into the wp-content/plugins directory

Go into the Plugins page and enable Wordbooker.

Go to the options page for Wordbooker and  it will ask you to get a login key from Facebook and then ask you to grant two extra permissions needed by Wordbooker – these allow Wordbooker to publish to your wall and also to fetch comments from it.

Click on the Save Configuration button.

You can then set up the various options on the option screen:

Wordbooker Options page

Wordbooker Options page

** Multiple Facebook account / WordPress account support **

If you as the blog owner only want it so that WP posts go to your FB account then go into the Options screen and set the default account to be yours, and that should be it, any person using a different WP account to post to your blog will publish those stories to your FB account.

But what if you’ve got a Family WB where different people would like to post to WP and to their OWN FB accounts. Simply get each of them to login to WP as themselves and configure WB as if they were the only user. Then when all of them have done this go back in as yourself and set the Default account to be you.

On the Edit Post page there is a WordBook Options block which includes a drop down list of the blog you wish to post to, if you want to post to your default blog then you don’t need to touch this but if someone wants to post that post to their FB account all they need to do is pick their name from the drop down list before they post.

** Length of Extract **
This allows you to change the length of the extract posted to Facebook. The minimum value is 200 and the maximum is 400 (at the moment) with the default being 256 characters. The extract will be trimmed to the nearest full word BELOW this value.

** Default Publish Post to Facebook **

This allows you to choose if posts should automatically be posted to Facebook. This option can be overridden from the Edit Post page

** Post Attribute **

This allows you to change the attribute line when posts are sent to Facebook. By default this is set to “Posted a new post on their blog”. This option can be overridden from the Edit Post page.

** Republish Post if edited more than x days ago **

This allows you to control how long it should be before Wordbook considers an edited post to be a “new” post and re-publishes it to Facebook.

** Override Re-Publication window  **

This allows to to force all edits to be reposted to Facebook ignoring the republish window. This option can be overridden from the Edit Post page.

** Update Facebook Status **
If this option is checked then the title of your blog post and its permalink will be posted to your status, along with the text specified here. This can be overridden from the Edit Post page. NOTE: If this option is Selected then your status is ALWAYS updated, even if you choose NOT to publish your post to Facebook.

** Import Comments from Facebook for Wordbook Posts  **

This version of Wordbook supports the importing of comments made on Facebook back into your WordPress blog. This allows you to set the default behaviour. This option can be overridden from the Edit Post page

** Auto Approve imported comments **

If you trust your friends on Facebook then you’re probably quite happy for their comments to automatically get posted as comments on your WordPress blog. If this option is not set then any imported comments are held in the moderation queue.

Once you’ve got the options set how you want then save them.

If you exported the wordbook_postcomments table before upgrading then you can now import it back into the database.

There may be times when you you are posting a blog entry and you’d like to do something differently, like NOT publish a post, or change your choice on what you do with comment. So on the Add New and Edit posts page you should now find a Wordbooker Options Override block where you can override several defaults:

Wordbooker Post options

Wordbooker Post options

If you are the administrator of a Facebook Fan page then you’ll also be given the option of posting to that page instead of posting to your own wall. At the moment there is a bug in the API which means that posts made to Fan Pages are shown as YOU posting on the Fan Page wall – rather than it looking like the Fan Page has posted the post directly.

PROBLEMS

If you’ve got problems its probably best to post them on the Wordbooker Page on Facebook where people can create new threads for each bug/problem and people can easily see if any fixes have been made

  • Share this:
  • Digg
  • Reddit
  • Print
  • StumbleUpon
  • Press This
  • Email

Category Computing, Wordbooker |



117 Responses to “ WordPress and Facebook Integration ”

« Previous 1 2 3
  1.    Steve Says:
    March 4th, 2010 at 5:43 pm

    Novelties? I don’t understand what you mean

  2.    Stu Heiss Says:
    March 5th, 2010 at 6:18 pm

    I also have the undefined method stream_publish() problem:

    PHP Fatal error: Call to undefined method FacebookRestClient::stream_publish() in /home/stuheiss/stuheiss.vhost/html/wp-content/plugins/wordbooker/wordbooker.php on line 194

    The post does publish to facebook. What’s wrong?

  3.    Steve Says:
    March 5th, 2010 at 6:36 pm

    Its caused by out of date Facebook client libraries being used by another Facebook plugin.

  4.    Anders Says:
    March 10th, 2010 at 5:00 am

    I have just got a blog and use about 50 different plugins. Thank you very much for your plugin. It complete my website

  5.    Gusy Says:
    April 1st, 2010 at 8:44 am

    I’m trying to figure out how to automatically post my WordPress entries onto my FaceBook wall, but only into a specific friends list. I don’t want to spam all my friends with my blog posts when only a few might be interested. I’ve created a “list” for this purpose but the original WordBook does not seem to allow me to restrict the wall posts to a specific friends list. Will this modification allow me to do that? Thank you in advance for your time.

  6.    Steve Says:
    April 2nd, 2010 at 9:35 pm

    I’m not sure if the API can support that – I don’t think you can even do that from the Web interface can you?

  7.    Jerry Davis Says:
    April 9th, 2010 at 4:13 am

    Steve, your app is interesting and I just installed it. I like the re-pub feature, and think it will be useful for publishing aged posts, like a re-pub every 30 days (cuz I will post a lot, I think.) Is there any way to automate posting to groups?

    Jerry Davis

  8.    Steve Says:
    April 9th, 2010 at 9:14 am

    Jerry, posting to groups will be coming along in 1.8 – assuming I can get some answers from the FB developers forums about finding out a couple of things.

    Glad you like the plugin

  9.    Batis Milan Says:
    June 30th, 2010 at 5:42 am

    please help me ,why i cant connect to facebook ! its report “An error occurred during processing. Please try again” . Thanks!

  10.    Steve Says:
    June 30th, 2010 at 7:28 am

    It would sound like a problem with Facebook.

  11.    Büyüler Says:
    July 8th, 2010 at 12:03 pm

    please help me ,why i cant connect to facebook ! its report “An error occurred during processing. Please try again” . Thanks!

  12.    Steve Says:
    July 8th, 2010 at 2:21 pm

    It could be any number of reasons – I can’t offer support on here so can you please either take it to the Facebook page or the WordPress support forum thanks.

  13.    larf2k Says:
    September 1st, 2010 at 9:13 pm

    Hello!

    Love the plug-in, have used it on a couple of sites. I was wondering if you had a work-around for auto-posting a custom post-type in WP 3.0. The custom post-type is a non-hierarchal “post-like” post-type, so it should be able to be done in the same fashion – I assume I’m going to have to alter some of the plug-in’s core to achieve this. Any direction will help!

    Thanks in advance.

    •    Steve Says:
      September 1st, 2010 at 9:17 pm

      You mean you want some custom post types to auto post and others not to? Its something that is on the drawing board for version 2.0

« Previous 1 2 3
  • Facebook Status


     FB photo for Stephen Atty


    Stephen Atty : Posted a new post on their blog
    (Sat May 12, 10:09 pm).

  •  

  • The Old Stuff

    • May 2012
    • October 2010
    • July 2010
    • May 2010
    • April 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • December 2006
    • October 2006
    • September 2006
    • August 2006
    • July 2006
    • December 2005
    • November 2005
    • August 2005
    • February 2005
    • January 2005
    • December 2004
  • Site Wide Tags


    3G 93 95 accident accounts Add new tag alcohol allergy advice alone alternator america android animal anniversary apache augusta autherley bank basketball beer Beeston benefits birmingham birthday blogging blogs boat boating Bob Geldof Boscastle boston brakes Braunston brewood BSS Bude builders C cable calendar camsigh canalplan canalplan AC car crash car park cars Cast List casualty Cats Challenger chavs cheese cheltenham Chester Christmas cinco de mayo clearsilver coast code coding cold Computing cooker CPRS crackers curry customer service dead depression diet diy dns e-commerce easter eli stone elvis email enhancement extension facebook favourites fish floods food forums Fraud fridge funding g1 gailey garage garden gas GCHQ General Options geospatial gloucester gnosall gold cup goldstone Goodies google Googlemaps granny buttons graph API grub street guinness hackers hallowell Heathrow holiday holidays home home mooring hoover hotel Importing integration intercontinental internet Internet Explorer irish Javascript jen jewellery Jill Joke json kathy kennebunk kestrel kitchen korea ladykat Last.FM latitude lawn leeching lighthouses linux ll bean lonely longitude lunch maine malvern manage routes maps market drayton maths mexican microsoft midges mintball mobile mooring mortgage MOT moving mozart MP Music mystery Nantwich national hunt netscape new domain new features new server nhs norbury npower ogunquit painting paprika party penkridge petition photos php phpbb pickle plugin Plugins poke in the eye police portland post by email pringles programming pub night pubnight pubs racing rain real ale renault Rick route importing Routes

    Donate

    If you've found anything useful on here and want to say thanks then please feel free:



    WPMUDEV

    WordPress MU, WPMU and BuddyPress plugins, themes and support at WPMU DEV

    Snapshots

    Enhanced with Snapshots
  •  


© 2012 Steve's Ramblings using Dignity theme by themebox

RSS Entries and RSS Comments.

Provided by WPMU DEV -The WordPress Experts
Hosted by Canalplan Blogs


Server uptime: 12 day(s), 7 hour(s) and 23 minute(s) | Server Load: 0.18, 0.35, 0.34
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.