WPBook.net
Bring your WordPress blog to Facebook
  • Home
  • About
  • Blog
  • Documentation
  • Support
  • Download
Browse: Home / Development Blog

Testing Facebook PHP SDK 3.1.1

By John Eckman on January 4, 2012

This Post was imported from Open Parenthesis » wpbook and was written by John Eckman

OK, no more testing, no more publishing and unpublishing this page.

WPBook 2.3 is released. This uses the same Facebook SDK (3.1.1) as WPBook Lite which I just released last weekend – this will make it easier to manage both.

It will also let me start work on adding more features to the plugin- a more stable base to work from.

—-
Third test. Should publish just to WPBook page.
—-
Oops. That’s why we test. Typo in publish_to_facebook.php fixed.
—-
Sorry for the testing post. Just working on an update to WPBook 2.3, including an update to the Facebook SDK, and need to make sure in the process I haven’t busted anything.

This should post to personal profile and to page wall.
—-

Posted in blog, comments, cross post, facebook, import, Open Source, PHP, SDK, Syndicated, WordPress, wpbook | Tagged openparenthesis.org

Facebook Graph API – Post Versus Link

By John Eckman on January 3, 2012

This Post was imported from Open Parenthesis » wpbook and was written by John Eckman

Difficult Choices. (Photo by Beppie K, cc-by-nc-sa license)

Over in the WordPress Support forums for WPBook, WPBook user TheCitizen was asking about the absence of “share” links on Wall Excerpts posted via WPBook. I responded that in my experience posts made via the API (by an App, rather than by the user directly) don’t get “share” links inside Facebook.

He pointed to Facebook Page Publish, a WordPress plugin which also cross-posts to Facebook (though it does not import comments). Posts made via this plugin do get a share link.

Digging in a bit, I realized that Facebook Page Publish uses the Link object in the Facebook Graph API, whereas WPBook and WPBook Lite both use a Post object.

What’s the difference? That’s what I’m trying to determine now.

Links are posted with these fields (ref):

  • link
  • message

The rest of the values “are taken from the metadata of the page URL given in the ‘link’ prarameter.

Posts are created with these fields (ref):

  • message
  • link
  • picture
  • name
  • caption
  • description
  • actions
  • privacy
  • object_attachment

So Posts are more complex than Links, whereas Links rely on getting the Facebook metadata from the page returned by the link.

How does each appear, on the timeline and in the news feed?

Here’s the same link, posted twice, using the Facebook Graph API explorer – the first time (the lower box) is as a Link, the second time is as a Post:

That is how they look on the timeline – logging in as another FB user and looking at News Feed, I could not even see the Post type, only the Link type:

Though I’m certain that in the past I have seen items in the newsfeed which were posted as Posts. (Maybe it was that I’d just posted the same link as a link, so Facebook was hiding the second item as spam? I’ll retry with something different).

(Update: here’s what a Post type object looks like in the Newsfeed – the item for this blog post):

A few things to note:

  • The nicer excerpt – “We are an interactive agency . . . ” was pulled from the page being linked to by Facebook themselves, not entered by me. In the case of WPBook or WPBook Lite posts, we want to provide the full excerpt, not have it pulled from the link destination.
  • The image – again, this was pulled from the link destination. In the case of WPBook or WPBook lite posts, the image would be provided by the app (the featured image from the post) not grabbed from the destination link – but it looks the same in both.
  • In the case of the link type, the “via the Graph API Explorer” is next to the poster’s name, but in the Post type it is down at the bottom above the action links
  • The Link type gets a “share” action link, while the Post type only gets “Like” and Comment.”

Given all this, plus the fact that I found it hard to find the Post type in the newsfeed of an account I know follows me, I wonder if we shouldn’t switch to posting blog posts as the “Link” type.

The challenge is that the “link” type depends on the target blog having the right open graph metadata in place already (unless wpbook / wpbook lite try to actually provide that metadata).

When Facebook visits the link, it looks for Open Graph Metadata – which your blog’s theme may or may not provide.

Using the “Post” object allows WPBook / WPBook Lite to control the message being sent to Facebook more explicitly, rather than relying on metadata.

The part that worries me though is how frequently “Post” type objects get into News Feeds. Since Facebook controls the algorithm which decides what, out of the hundreds or thousands of possible posts in any given user’s feed, to show that user, I have no way of knowing whether object type (Post vs Link) has any impact.

Anyone have data on that to share?

Posted in Comment, cross post, facebook, Like, link, Open Source, Post, Share, Syndicated, WordPress, wpbook, WPBook Lite | Tagged openparenthesis.org

WPBook and WPBook Lite: More Options, More Flexibility

By John Eckman on January 1, 2012

This Post was imported from Open Parenthesis » wpbook and was written by John Eckman

A few months ago I discussed the Future of WPBook in this space, specifically what to do about Facebook’s new requirement that all applications providing canvas pages or page tabs had to be accessible via SSL. As I outlined it then, I saw the options as:

  1. Eliminate the canvas page and tab altogether – make WPBook just focus on cross-posting and comment import, thus potentially eliminating the SSL requirement?
  2. Make it optional – keep the canvas page and tab, but make them optional – only for users who want them and have the necessary SSL certificate
  3. Fork the plugin – make a version of the plugin which works like the current model, but also a second (WPBook Lite?) that only does cross posting and comment import? That way we could have separate directions for each to simplify setup confusion
  4. Stop developing WPBook – There are a number of other plugins which do Facebook posting, and at least one which does Facebook comment importing (probably more). Is it worth continuing to develop WPBook if better alternatives exist?

Ultimately, I settled on Option 3: Fork the plugin, and create a lighter-weight version which did not include the canvas page or tab. The result is WPBook Lite, available now in the WordPress Plugin Repository.

Should I use WPBook, or WPBook Lite?

I suspect this will be the main question folks will face, so here’s a quick comparison table:

Feature WPBook WPBook Lite
Cross Post WordPress Blog Posts to Facebook X X
Post WordPress Blog Posts to Facebook Profiles (Walls), Pages, and Groups X X
Import comments made against Facebook Excerpt Posts to WordPress as native comments X X
View WordPress Blog inside Facebook as Canvas Page Application X
Add WordPress blog as a tab to a Facebook Page X
Requires WordPress blog be accessible via SSL (HTTPS) X

Basically, if you are able to access your blog via HTTPS, and you WANT the view of the blog inside Facebook as a canvas application, or you want the page tab feature, you should use WPBook.

If your blog is not accessible via HTTPS, or you don’t want the view of the blog inside Facebook / page tab, then you should be happier with WPBook lite.

I’ll be updating the instructions over at WPBook.net shortly to reflect Facebook’s new look for developer settings shortly, and will also differentiate between WPBook and WPBook Lite. In theory, configuring WPBook Lite should be significantly simpler for most users.

If you’re already using WPBook and shift to WPBook Lite, you will need to regrant permissions.

Migrating from WPBook to WPBook Lite:

  1. View your WPBook settings page, and write down your profile ID as well as the IDs of any pages/groups to which you want to cross publish.
  2. Deactivate WPBook (but don’t delete it yet)
  3. Install and Activate WPBook Lite
  4. Set up a new Application for WPBook Lite – this time you should only need the “Website” settings under Integration, not any of the “App on Facebook” section settings
  5. Visit the WPBook Lite settings page in WordPress, fill out the required fields (APP ID, Secret, your profile ID), and save the form
  6. Re-visit the WPBook Lite settings page, where you should now see an opportunity to grant appropriate permissions

If done correctly, WPBook Lite should pick up right where WPBook left off.

If you run into problems, please comment in the appropriate WordPress Support Forums: WPBook or WPBook Lite.

Posted in facebook, Open Source, Plugin, Syndicated, WordPress, wpbook | Tagged openparenthesis.org

Next »

Did You Know?

This blog is syndicated. This means the posts found here are WPBook related post pulled in from other sources primarily Open Parenthesist.

Wrote something about WPBook? Let us know and we may include it into this blog.

Archives

  • January 2012
  • October 2011
  • June 2011
  • March 2011
  • February 2011
  • January 2011
  • October 2010
  • August 2010
  • July 2010
  • March 2010

Get Blog Email Updates


RSS

RSS Feed RSS - Posts

Copyright © 2012 WPBook.net. Powered by WordPress and Hybrid.

This work by WPBook.net is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported.