This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WPBook Lite

Description

WPBook enables cross-posting of blog posts from WordPress into Facebook.

Comments made against notifications posted to the wall (via WPBook Lite) or timeline
will be imported as comments inside WordPress.

If your blog is available via HTTPS, you may wish to consider the full WPBook
instead – both are free.

This plugin requires PHP 5.

To Do

*

Installation

  1. Copy the entire wpbook-lite directory into your wordpress plugins folder,
    /wp-content/plugins/

    You should have a directory structure like this:
    /wp-content/plugins/wpbook-lite/wpbook_lite.php
    /wp-content/plugins/wpbook-lite/client/

  2. Set up a New Application at http://www.facebook.com/developers/, obtaining
    a secret and API key.

    Set the application type to “website”

  3. Login to WordPress Admin and activate the plugin

  4. Using the WPBook menu, (Dashboard->Settings->WPBook) fill
    in the appropriate information including Facebook application secret
    and app ID, as well as your application canvas url.

Contributors & Developers

“WPBook Lite” is open source software. The following people have contributed to this plugin.

Contributors

Translate “WPBook Lite” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.6.5

  • Better suppression of unset string indices on first install

1.6.4

  • Added wp_nonce protection to admin settings form.

1.6.3

  • Bug in setting post-as-link for the publish to page/group settings.

1.6.2

  • Somehow encoding on the main wpbook-lite.php file was UTF-8 with a BOM – this
    triggers extra characters of output on activation.

1.6.1

  • Changes to the API changed format for timestamps, which through for a loop the
    logic for checking when comments are new.

1.6

  • Updated Facebook PHP SDK to 3.2.3. Would like to get to 4.0 at some point
    but that requires PHP 5.4 where WordPress only requires 5.2.4 – don’t want
    to get too far ahead.
  • Updated publish_to_facebook to use appropriate appsecret_proof
  • Updated the base_facebook class to use v2.1 of the graph API. (New apps
    created on Facebook can no longer use v1 of the API, which is what gets
    used if you don’t pass a version – so I have to pass a version, so lets
    use 2.1.
  • Rewrote comment import to not use FQL as that is not supported in new
    Facebook apps using v2 or later of the API
  • Ask for publish_actions not publish_stream – deprecated API functions. This will
    probably mean people will need to regenerate their access tokens, but it works.
  • Use https for Facebook avatars outside facebook setting – should make that
    work again even for those for whom it wasn’t

1.5.4

  • When granting a new access token, get the short-term one and then immediately
    exchange for a 2 month long-lived one.
  • Clean up hard coded wp-admin url

1.5.3

  • Fixed typo in wpbook_lite_cron where it had degub instead of debug – thanks
    to jeff in wpbook_lite support forum for noting it
  • Updating handling of wpbook_lite_message in post_meta

1.5.2

  • Too quick on the fix in 1.5.1. Fixed again with code from WPBook

1.5.1

  • Fixed undefined $response variable in wpbook_cron – threw warnings when
    run, may have interfered with comment import.

  • Fixed undefined $response variable in wpbook_cron – threw warnings when
    run, may have interfered with comment import.

  • Fixed undefined $response variable in wpbook_cron – threw warnings when
    run, may have interfered with comment import.

1.5

  • Fixed error introduced somewhere around 1.4.1 involving storing access tokens
    for long-lived tokens. Wasn’t properly storing full length of token which
    cause this to fail for some users.

  • Fixed bad define() statement for setting WPBOOKDEBUG to false if the file
    handler fp comes back not writeable. This resulted in warnings being thrown
    for users whose permissions did not allow writing to the file system.

  • Fixed bad define() statement for setting WPBOOKDEBUG to false if the file
    handler fp comes back not writeable. This resulted in warnings being thrown
    for users whose permissions did not allow writing to the file system.

1.4.3

  • Fixed typo in wpbook_cron.php thanks to jeff@pyebrook.com
    (https://wordpress.org/support/topic/plugin-wpbook-lite-minor-typo-in-wpbook-cron)
  • Updated add_options_page() function call in wpbook-lite.php from same forum
    thread.
  • Fixed extraneous close div tags in admin interface
  • Removed unused Jquery functions from admin interface javascript
  • Deleted unused PNG files from admin interface

1.4.2

  • Eliminated check on page access_token as that really just comes from the user
    access token – hope this will solve issues with page publishing

1.4.1

  • Simple typo bug in publishing to Facebook – EVERYONE MUST UPGRADE as 1.4
    will not work

1.4

  • Updated logic to accomodate Facebook’s deprecation of “offline_access” tokens.
    This will mean tokens (for newly created apps) will expire every 60 days and
    require re-authentication. WPBook Lite checks for token validity every time it
    publishes and every time the cron task for comment import runs (once an hour).

1.3.1

  • Added hook to remove all post_meta wpbook lite creates on uninstall
  • Added sslverify false for getting token from Facebook to solve certificate
    errors

1.3

  • New feature: added “message” to post-meta box; used it text is entered into
    it instead of the excerpt for the post.
  • Bugfix: duplicate post meta (custom fields) for each save of post
  • Bugfix: Publishing to facebook regardless of setting meta-box to no
  • Added permission check and grant for user_groups, required to publish to
    non-public groups

1.2.6

  • Added ‘auto-draft-to-publish’ post transition state, to better support posts
    created by XML-RPC clients, including Windows Live Writer
  • Cleaned up debugging output and simplified logic for try/catch blocks
    around the calls to the Facebook API throughout the Facebook publish process.
  • Added check for WP_error object returned to wp_remote_request when fetching
    access token.
  • Update support link on settings page to point to the forum for wpbook-lite not
    the existing forum for wp-book

1.2.5

  • Fixed bug in access_token capture, exposued more debug info to WPBook Lite
    settings page.

1.2.4

  • Update mechanism for capturing access_token to work on sites where fopen
    is not allowed, using wp_remote_request.

1.2.3

  • Restrict global filter on gravatars to only comments

1.2.2

  • Wrap try/catch blocks around Facebook permission calls in admin page –
    should more robustly handle bad data entered in profile ID, app ID, secret.

1.2.1

  • Bugfix: Delete data from db when uninstalled

1.2

  • Add option to publish as link, note, or post

1.1

  • Cleanup – have to check for FB_API_KEY and SECRET before making permissions calls.

1.0

  • Fork from WPBook full version
  • Upgrade to Facebook SDK version 3.x