Plugin Directory

Test out the new Plugin Directory and let us know what you think.


Plugin to embed WordPress Blog into Facebook Platform. Requires PHP 5. Requires ability to access your WordPress blog via HTTPS (SSL).


  • Added wp_nonce protection to admin form to prevent CSRF - thanks to Ryan Satterfield from https://planetzuda.com/ for the report on the vulnerability


  • Updated Facebook SDK to 3.2.3. Would be nice to go to 4.0 at some point, but that would exceed WordPress' own PHP requirements (5.4 would be required).
  • Rewrote the permissions checking logic to no longer rely on FQL which is no longer supported in the API v2.1
  • Rewrote the comment import logic to not use FQL
  • Add https for global Facebook gravatar
  • Rewrite comment import timestamp logic to account for new datetime format in graph API


  • Cleaned up line endings and admin notices for unset vars


  • Fixed ? vs & issue with url for granting/re-granting permissions


  • Wasn't checking first to see if permissions had been granted before trying to check the users permissions.


  • Comment out appsecret_proof in Facebook SDK. This is causing calls to FB API to fail - not sure why.


  • Change to the posting method for posting to groups
  • Change to asking for publish_actions in addition to publish_stream - may be needed in the new Facebook API


  • Removed "Invite Friends" link option from settings and display. Since FB hasn't supported FBML for a while this simply wasn't working.
  • Removed FBML based tabs - application tabs should now all be HTML in iframes
  • Fixed "check permissions" page which was incorrectly reporting unset permissions - bug introduced in 2.6.


  • Discovered by parsing error logs that users requesting a canvas page inside Facebook while not logged in to Facebook could throw an uncaught exception as I was trying to retrieve their name for the comment form. Updated comment form now shows a blank (unfilled out) content form for not logged in users.
  • Also discovered while troubleshooting I was using a deprecated javascript call for resizing the iframe inside Facebook - updated to use new code.


  • Cleanup call to stylesheet for application tabs, when called via https - when the application tab is shown on a Facebook page


  • Cleanup calls to the default stylesheet, which were failing for me on 3.6 when called via https


  • New logic which tries to use the stored access_token first. If a stored access token is found and has an expiration of less than 2 hrs, exchange it for a long-term token. If no stored token is found, get a new one and then try to exchange that one for a long term token. This feature relies on @file_get_contents because the PHP SDK from Facebook does not seem to allow this oauth token exchange call.
  • Make the admin url no longer hard coded.


  • Fixed typo in wpbook_cron.php that would throw warnings in debug.log
  • Tightened handling of $wpbook_message post_meta - should now not save if empty or undefined
  • Fixed bad define statement in publish_to_facebook.php. Resulted in warnings for users whose permissions did not allow writing to the debug file.


  • Cleaned up typo in wpbook_cron which may have caused issues with comment import
  • Removed deprecated warning in add_options_page
  • Changed to use different auth_url in Invite mode for invite friends when in forced https mode on Facebook


  • doh! Bad typo in the facebook publish code, rending access tokens invalid. Quick fix, everyone should be on 2.5.2.


  • Had missed some entries in the theme which referred to offline_access Shouldn't cause problems for anyone but should be removed as it will be deprecated.


  • Added hook to remove all the post_meta that wpbook created while installed
  • Accomodate Facebook having deprecated offline_access permission. For most users you won't notice a difference. However, sometime after June 2012 you will notice that your tokens expire every 60 days and require new tokens to be generated. Sorry, but that's Facebook's new policy.


  • Added wpbook message field to meta box. This will be used over the excerpt if it is present.
  • Bugfix for duplicate post_meta (custom fields) - never interfered with functionality but did create unnecessary date. Now only one wpbook_publish per post.
  • Added user_groups permission for publishing to non-public groups


  • Added auto-draft to publish action, better support for Windows Live Writer and other XML-RPC clients.
  • Added check for Facebook class inside comments.php file
  • Reverted some changes to Gravatar code that was overly restrictive in 2.3.4


  • Bugfix for iFrame style page tabs, introduced via the newer Facebook sdk. Was throwing "headers already sent" warnings for those pages.
  • Bugfix for overly broad filter for global avatars outside comments.


  • Delete options from db on uninstall


  • Bug fix posting to page - left wrong $access_token in place in pushing 2.3.1


  • Introduced user-requested option to post as "link" rather than "post" type. Links pull metadata from FB open graph and use that to fetch image and short description.


  • Updated to the latest Facebook PHP SDK, 3.1.1


  • Bugfix: User should not have to be logged in to view the fanpage tab. This means hiding the 'invite friends' link on that tab, which makes sense since the user should really 'like' that page, not invite people to the app - that makes sense on the app canvas page instead
  • Bugfix: Moved from 'like' button back to 'share this post' for the page tabs as well. The 'like' doesn't really work effectively inside FB pages/apps - always just points to the app not the post
  • Bugfix: Support https mode. (Thanks to patch from cshiflet). In order for https mode to work, of course, your blog must be accessible under an https url, but if you have https working on your blog WPBook will continue to operate for users browsing facebook under https.


  • Bugfix: fwrite errors for supplied argument is not a valid stream resource
  • Reverted from "like" button to "share" button for canvas pages within application. Although Facebook is phasing out the share button, the like button they want to replace it doesn't yet work inside app pages. They default the og:url to the canvas page, which means all your likes point to the app, not the specific post
  • If posts have a "featured image" / "post thumbnail" defined, that post thumbnail is passed through the share link
  • Added a 'wpbook_attachment' filter for other plugins to use
  • Added a functions.php to the wpbook theme so that it could natively support the post_thumbnails in index.php


  • Something wrong in checked in copy - cleanup release


  • Added the "Read More" action link. Because of a Facebook bug (http://bugs.developers.facebook.net/show_bug.cgi?id=15377) I can't add more than one action link to a post, so no "share" button.
  • Added posting options for Group walls, and comment import form Group walls
  • Limit the size of debug files created to 500k, for users who enable debugging and then forget.
  • Clean up DEBUG for cases where permissions fail or file is not writeable
  • Made "disable ssl verification" an option so that only users who need it will have it and others won't get conflict
  • Cleanup to the admin screens in general, more clarity around what is required and better language on the admin screens about what is being checked. (Thanks BandonRandon for patches)
  • Improved "Check permissions" page
  • Added wpbook logo which had been missing
  • Fix for get_themes() issues with WordPress 3.0.1 through 3.0.5 (Thanks BandonRandon for patch)


  • Bugfix: Access token for importing comments from streams that aren't public
  • Bugfix: Get right Facebook avatar for comments made as pages


  • Bugfix: Error for fopen filename can't be empty - wasn't declaring debug filename early enough in publish_to_facebook.php


  • Bugfix: Don't store access_token in usermeta but in options table (Impacts users who were trying to post as authors other than admin)
  • Bugfix: Post Thumbnails was failing, resulting in random images
  • Bugfix: ssl options for self-signed certs (impacts posting to Facebook for users on servers with self-signed ssl certs)
  • Store separate access token and "manage_pages" permissions so that we can publish to pages as pages, not as users


  • Bugfix - wrap call to get_the_post_thumbnail in function_exists() so that themes which don't support it don't break
  • If you are not using post thumbnails (because your theme doesn't support it, I can't use those thumbnails to post to the wall.


  • Shifted from _GET and _POST to _REQUEST - to handle Facebook's changes which deprecated _GET
  • Released 2.1


  • Added wpbook_theme which can be copied to themes directory, enabling users to customize the theme without it getting overwritten (Thanks to Brook Dukes / BandonRandon for the patch) (copy the 'wpbook_theme' folder to 'wp-content/theme' and make any changes to this theme. To go back to the default theme delete the wpbook_theme or change the theme name in the stylesheet)
  • Cleaned up the "More Posts" section of the index.php template to not show when there is no previous or next page of posts
  • Added capability, based on a patch supplied by @sebaxtian, to allow user to post to FB as notes rather than wall excerpts

= 2.1b1= * Changed to Facebook Graph API, PHP SDK * Posting to Profile Wall * Posting to Page, App, or Group Wall * OAuth authentication for Canvas * Upped minimum WordPress to 2.9.0 * Using "featured_image" thumbnails for posting to FB wall * Added Facebook Like button replacing "share" button * Points to external link * Updated comment import for new Graph API * Updated permissions checking page for storing access_token in user_meta


  • Moved and Unhid the infinite_session_key in admin WPBook setting screen
  • Fixed attribution line function which prevented %author% from working
  • Added global gravatar setting - otherwise we only filter gravatars inside facebook. (This prevents wpbook from interfering with other gravatars in themes outside fb).
  • Added DONOTCACHEPAGE constant when pages are viewed inside facebook - this should enable WPBook to better coordinate with wp-super-cache.
  • Added initial support for iFrame based tabs - still needs work


  • Fixed regression - cron was looking for FB client in wrong directory (Thanks Olivier)


  • Removed "add to profile" tab options
  • README updates - link to instructions
  • Conditional checking for fb_page_target to avoid 'premature end of FQL query"
  • README updates on profile tabs
  • Add pending_to_publish state
  • Filter JS out of FB share link
  • Added more debugging info


  • Changes by bandonrandon, see http://bandonrandon.wordpress.com/2010/10/10/wpbook-2-0-10-beta-release/
  • Move includes into their own directory
  • Incorporate FB avatar in comments imported
  • New Admin Layout, images
  • Bug fixes: default for 'post to facebook' is set to true
  • Links in permissions page point to wpbook.net
  • FB tabs view moved to its own file in theme directory

  • Typo in wpbook_cron.php (defin should be define) - triggered only when debug disabled
  • Added thead to allowed tags in tab view

  • SVN issue - removing html entities from comment author


  • Fixed the lost navigation issue - previous and next page of posts listed at bottom of archive pages (Though not on tabs)
  • %category_link% and %tab_link% in header/footer were broken - fixed.
  • Attempt at fix for comment authors with non-ascii characters in their names
  • Removing old profilebox code and references - Facebook no longer allows profile boxes - replaced by tabs
  • Excerpts posting to walls with [caption] shortcodes - fixed
  • Timestamp on imported comments - fixed
  • Added user_ID to comment-data array for comment import

  • Ouch! Checked in version had extra whitespace before opening php tag
  • Array checking for page type should be cleaner


  • Changed the "catch permissions" logic for retrieving the infinite session key again - hopefully eliminate conflict with theme-my-login plugin and any other plugin trying to set cookies.
  • Adapted logic to allow for posting to the walls of Application Profile pages, Group pages, and regular Fan Pages


  • Added new way to grant permissions directly for a pageID entered into the wpbook settings interface. Should improve capability for folks looking to publish to a page for which they aren't necessarily an admin, but for which permissions can be granted
  • Removed instructions, replaced with pointer to online version (easier to keep updated, limit size of download)


  • Misc bug fixes: gravatar strtolower, htmlspecialchars on blog titles, link to instructions wrong in admin, adding tag to allowed html


  • left out a key global for $wp_version


  • Error in post-meta checking for individual posts
  • Debug info left in publish to facebook routine


  • Quick bugfix release
  • Elminate extra whitespace on includes
  • Clean up include structure to break on full functions no mid-stream
  • Update checking for post_meta for 'suppress' function


  • Added option which enables app and profile tabs (/?app_tab=true&fb_force_mode=fbml )
  • Fixed excerpt issues with posts with no custom excerpt, teaser, or manual
  • Catch excerpt over 1000 characters
  • Use nohtml filter on excerpts for walls
  • Use less restrictive filter for application tabs - still no embedded videos though
  • Made debug log generation a setting
  • Fixed typo in wpbook_cron.php - declaring constant for method comments vs comment
  • Moved infinite_session_key to a setting user enters (consistency)
  • Added "publish this post to FB" setting, which allows users to suppress stream publishing for an individual post
  • Changed saving of postmeta to be on PostID, not the id of the current revision
  • moved try/catch blocks into conditional includes to avoid error messages when installed on PHP4 hosts
  • Rearranged options to simplify, and better group settings
  • Rewrote install instructions with new screenshots to show changed FB screens
  • Updating profile references to tabs as profile boxes are going away (already gone from Fan Pages)


  • Capture of infinite_session_key
  • Introduced debug log
  • Attribution line setting


  • Added promote external links
  • Introduced the ability to import comments from post walls, using wp_cron


  • Bugfix - typo in index.php, only visible when specific exception was triggered.


  • Changed mechanism for getting pageID for publishing to page's wall. Rather than getting this each time via FQL, we only get it the first time in Grant Permissions page, then store it as a setting.
  • Thanks to Larry Bertolino and others for help debugging and for persistence in trying to make this work


  • Changed mechanism for requesting offline.access, stream.publish permissions for users and fan pages.
  • This should help eliminate the API 100 and API 200 errors some have encountered


  • Cleaned up theme/index.php if/else loops
  • Eliminates FBML errors for blog owner on invite page


  • Fixed Activation check for PHP5
  • Added Try/Catch around FQL call for pages of which user is admin
  • Added option for 'publish to pages' separate from 'publish to stream' (This enables publishing to author's wall, page's wall, OR both)
  • Added code to carry querystring into "external permalink" function
  • Fixed spelling of pieces in external permalink function


  • Now checks for PHP 5 at activation, will not allow activation under PHP4
  • Checks for zero pages of which user is admin (avoid edge case exception)
  • Added link to installation instructions to permissions page
  • Added offline-access permission request (some users had not yet granted this permission)
  • Added "show errors" mode, which when enabled calls wp_die when the Facebook client throws exceptions - a bit extreme but does show the exceptions to the user


  • Oops. Forgot to check for user who isn't an admin of any pages.


  • Now requires PHP 5
  • Enables user to post to stream, including to pages.
  • Catches exceptions from Facebook client. (Doesn't yet surface those in good error messages, but at least they are caught)
  • Fixed, I hope, issue with comments inside Facebook for some users
  • Clean up of some admin styles (resized gravatar images as well as some basic hierarchy on options)
  • Added Pageing options as their own section
  • Allow user to select pages to be excluded
  • Added option to allow a menu of parent pages at top of the app below the title
  • Fixed "Facebok" typo in line line 182 of theme/index.php
  • Option to turn on and off page list under content (independent of menu)
  • Option to turn on/off recent post under content
  • Allow user to set the amount of recent post to show under content (default 10)
  • Cleaned up custom header/footer now only one function instead of two (no reason to have two functions)
  • Added %tag_links% and %category_links% to custom header footer as well as made archive pages work.


  • Bugfix for those who install WordPress in a subdirectory, for home comment submission was failing in 1.4 and 1.4.1.
  • Bugfix for wpbook_admin_javascript.js which included an outmoded jQuery selector syntax and broke the admin js in 2.9.1
  • Bugfix for wpbook_admin_javascript.js which included hardcoded paths assuming wp_content path relative to wp-admin (shows images for default gravatar icons by default now rather than waiting for tooltip hover)




  • Fix for XAMPP Windows users - add ABSPATH to include for config.php
  • Fix for users who have the application name in the permalink structure
  • Cleanup for images in instructions that were too wide for layout
  • Cleanup button title for submit on invite friends page
  • Remove unnecessary second 'include_once' in comments.php


  • Mostly improvements to the admin interface user experience - better separation of options into required, customization, social, and advanced.
  • Ability to include a custom header/footer for each post, including author, date, time, category, and tags.
  • Bugfix: No longer echoing blog name twice on the invite friends screen.
  • Bugfix: Caught case where profile box could get updated with links to the original source (outside FB).
  • Note: This is expected to be the final PHP4 compatible version. Facebook's client only supports PHP5, and I need to be able to wrap certain client calls in Try/Catch, which requires PHP5, to avoid nasty "uncaught exception" bugs. (Yes, there are unofficial PHP4 clients, but they are unsupported). If someone wants to create a PHP4 only version which trails the ongoing development, they are welcome to, taking this as the place from which to begin a fork.


  • Changed the mechanism for "Add to Profile" to avoid issues with the fb:ref url method, using fb:ref handle instead
  • Eliminated /wpbook/theme/recent_posts.php
  • Incorporated Brooke Dukes' fixes to admins screens
  • Added timestamp to posts


  • Fixed minor bug which broke FB resize javascript when 'add to profile' option was off
  • Fixed minor bug in the description of the plugin (display).


  • Fixed (I hope!) Profile.setFBML issues for pages, profiles Eliminated the need to copy defaultFBML into settings
  • Added option to view link in external site
  • Added option to move links (share, external) top or bottom
  • Added option to enable "add to profile"
  • Created documentation with photos


  • Added simplexml44 library (BSD Licensed) for php4client
  • Added option for "Give Credit"
  • Added option for "Enable Share"
  • Added option for "Allow Comments"
  • Moved "Invite Friends" to top of page
  • Cleaned up CSS for "recent posts" in main page
  • Added fix to facebookapi_php5_restlib.php which affected hosts where curl libraries were not present or enabled
  • Jumped version to 1.0 - functionally complete


  • template_directory deprecated in 2.7, use bloginfo('wpurl') instead


  • Clean up from moving plugin in to directory
  • Added Share button to share posts on FB
  • Added fix for conflict with other Facebook-based plugins


  • Moved plugin into wpbook dir in subversion
  • Moved theme subdirectory inside plugin subdir
  • Required several function changes
  • Added check for existing FacebookRestClient


  • Bug in javascript (NULL isn't the same as null) for profile


  • Bug in commenting inside Facebook due to $facebook->redirect
  • Now redirects to the post on which the user commented
  • Added instruction for adding to FB Pages to settings page in WordPress


  • Didn't realize I had set default FBML inside Facebook, masked a bug
  • Should now set profile FBML before calling add profile box


  • Fixed xd_reciever.html versus xd_receiver.html issue
  • (You'd think a guy with a PhD in English would know how to spell.)


  • Added profile boxes
  • Shows 5 most recent posts in profile box
  • Also sets FBML for "pages" profile boxes


  • Added option to require email address of comment author
  • Can be set separately only for Facebook comment authors
  • Functionality added by Brooke Dukes.


  • Oops. Typo in README.txt - Brooke Dukes.
  • Issue with some text not being displayed on the invite form
  • Tested with WordPress 2.6.2


  • Thanks to Brooke Dukes for contributing facebook invites - if you select 'display invite friends link' checkbox in the wp-admin settings for WPBook, you can invite facebook friends!
  • Display email box for commentors (optional)


  • bug fix: style.css is in template directory, not necessarily based on /wp-content/themes/wp-facebook - account for subdirs
  • Same goes for the FB.XdComm.Server.init call


  • bug fix for subdirectory based blogs
  • fixed hardcoded offset of permalinks
  • added note to readme to update theme when updating plugin
  • Updated javascript in theme to reflect "new" facebook js 0.4 (See http://wiki.developers.facebook.com/index.php/Resizable_IFrame#New_Profile_Update)
  • Fixed erroneous link in "theme not installed" check
  • Added ABSPATH as appropriate to catch the right includes
  • Removed hard dependency on specific Avatars plugin, now uses default gravatar


  • bug fix
  • adding namespacing to plugin function
  • anded min version to readme


  • bug fix
  • no try { } catch {} in PHP4


  • bug fix
  • comments_facebook.php was not being found
  • created fb_comments_template function instead


  • Major architecture changes
  • Relies on a theme, not creation of a page
  • Inspired by Alex King's mobile plugin (http://alexking.org/projects/wordpress)
  • Enables recent posts and post navigation
  • Added app canvas url to options for use as redirect post-comment submission


  • Added support for posting comments
  • Switched to iFrame to allow more code in blog posts
  • Added Facebook javascript for resizing iFrame
  • Added style.css for styling
  • fixed bug in storing options
  • consolidated Facebook client stuff in config.php
  • auto detect php version and set client include accordingly


  • Added support for PHP4 Facebook Client Library
  • Options combined into associative array to speed-up and remove interference w/ other plugins


  • First push to WP-Plugins Directory

Requires: 2.9.0 or higher
Compatible up to: 4.2.11
Last Updated: 2 years ago
Active Installs: 1,000+


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,1,1 100,2,2
100,2,2 100,1,1
100,4,4 0,1,0
0,2,0 67,3,2 100,3,3 100,1,1
100,2,2 100,2,2 100,1,1 100,1,1 100,1,1 50,2,1 75,4,3 50,2,1 100,1,1
100,1,1 100,3,3 100,1,1
33,3,1 100,1,1 100,1,1 100,5,5 50,2,1 67,3,2 100,2,2 100,9,9 0,1,0
100,1,1 0,1,0
100,1,1 67,6,4
100,2,2 100,1,1
100,1,1 100,1,1
0,1,0 75,4,3 100,4,4 100,1,1 50,6,3 80,5,4 100,1,1 100,1,1
100,1,1 67,3,2
100,1,1 100,1,1 100,1,1
33,3,1 100,1,1
100,1,1 100,1,1