WPBook 1.4 Released

(Update 1/14 – now 1.4.2. Fixes detailed in readme – Admin side javascript issue, issue with submitting comments for folks who install wordpress files in a subdirectory different than their root URL)

(Updated 1/5 – it’s actually 1.4.1 now, as there was a typo in the theme/index.php file – get_exteral_url should be get_external_url).

Last night I packaged and released version 1.4 of WPBook, the plugin I maintain which creates a view of your WordPress blog as a Facebook application.

(For example, see Open Parenthesis as a blog, and then Open Parenthesis as a Facebook app).

Highlights of this release


As you can see, this was really more of a bug-fix and code cleanup release, with one experimental functional addition (pages). The one feature I didn’t get to but wanted to was threaded comment support (as in WordPress 2.7 and later). Would users want to be able to set threading differently inside Facebook than outside it? (I’m thinking that WPBook should just follow the settings in the blog it is installed to, with respect to threading – and perhaps gravatars as well, given how integrated with WordPress gravatars have become).

The next version will be more of a “feature set” release, and will also be the first version to require PHP 5. Although Facebook only officially supports a PHP 5 client library, I’ve been supporting PHP 4 by relying on an open source PHP 4 Facebook client.

The problem is that many of the operations most requested by users rely on Facebook API calls which sometimes fail. The PHP 5 client handles this by throwing exceptions, which WPBook needs to catch – something PHP 4 can’t do.

What’s coming in 1.5

Here’s my tentative roadmap:

  • Threaded Comments – which may mean upping the minimum WordPress to 2.7 for simplicity’s sake. Given that we’re at 2.9 now I think that’s ok.
  • More work on Pages. Need to be able to list pages not to show inside Facebook, enable user to set page depth, maybe even show the top level pages as Facebook style tabs across the top of the application? (tricky inside an iFrame app)
  • PHP 5 required – this will allow me to trap “uncaught exceptions” which sometimes occur when users submit new blog posts. It’s a cosmetic error but a really ugly one which it happens, and as I use more and more Facebook calls it may happen more often.
  • Publish to Facebook’s Stream.publish API when a new blog post is published – this is the most commonly requested feature. (Is it fair to assume the blog author is also the owner of the Facebook application? I had assumed so but that may not be the case – may require the user to enter his/her Facebook UID in WPBook for publishing to the stream)
  • Enable publishing to the wall of a Facebook “page” as well as a userwhen a new blog post is published.
  • Enable users leaving comments to also publish to the Facebook stream- has to be at the user’s discretion, but WPBook could offer to publish comments both to the stream of the user publishing the comment and to the blog author’s stream.

What else would you like to see in WPBook 1.5? (Not that these aren’t enough).

I’ve also got to start thinking about WordPress 3.0 and the merge with the WPMU codebase, and what impact that has, but I’m hoping that can wait for WPBook 1.6.

67 Comments

  1. Great work John,

    One thing I hope to be working on and rolling out is the localization of the client side of WPBook. I think with Facebook and WordPress both available in so many languages this is something we should try to incorporate. I’m not sure I want to localize the admin side of the plugin just yet but eventually that’s a goal as well.

  2. This is awesome.

    I already have an idea on how I will be implementing in my IM model. Thanks for working on this! I wish I was as gifted at PHP as many WP people are. My days were spent in Assembler and Cobol.

    Continued success to you!

  3. I have successfully installed the plug in and now have an opperating FaceBook application at:
    http://apps.facebook.com/amusebook/

    Everything is going as planned but i am looking for advice regarding the css or formatiog of my page.

    Maybe WordPressMU and BuddyPress will be causing some issues, but hopefully i will have some luck including some more of the BP nmenu items as if they were in fact WP pages.

  4. The way WPBook works is by substituting in its own theme when the user is viewing the app inside Facebook.

    So you can edit the files in wpbook/theme/ – the css lives inside the default folder in the theme folder.

    The challenge is that when new releases of WPBook come out, if you use the automated update, your changes will get overwritten.

    In other words, if you do customize the theme, make sure you store a backup – you’ll need to merge your changes in again with each new WPBook release.

  5. Nice work John. I build a lot of flash objects and integrating them into a brand on facebook is nothing short of a monumental task to keep others “branding” away from our own. Your plug-in takes care of all of this in many ways and I was stupified to see that my disqus commenting system works right inside. That being said, I tried to place this comment on your blog via your own install and wp denied it saying name and website we’re required which don’t show up as fields in your blog on fb. My disqus works seamlessly with your system right inside facebook. kudos to that.

    I manage several companies online facebook and twitter presence and I have 2 questions before I really start integrating those.

    1. I have sucessfully added open parenthesis as a tab in several test pages but the fb squiggle comes up, then to a blank page. The “wpbook” powered blogs themselves work fine but it seems right now you cannot replicate them within the timeline on the page you put the tab. comments?

    2. I’ve been tearing into how to create a tab for my apps and it seems you have done this nicely although considering (1) above it may be a moot point until that’s resolved. Could you share specifics about how you did create the tab, from reading the documentation it appears to be an application of it’s own which gets pretty confusing. Would you mind sharing with us instruction on how this is done? I’m sorry if this has been covered elsewhere but I’m at a roadblock.

    Sincerely,
    Stuart Liedtke

  6. Hmm. That’s interesting – I did make a change in the way comments are submitted in 1.4 – wonder if that is somehow imposing different requirements. More testing to come there.

    Adding tabs is complex and unsupported by WPBook, as tabs *can only contain FBML*.

    What you can do is add a WPBook powered blog to your profile (as a person or as a page), which adds it either to the Boxes tab or to your wall (at the option of the user whose profile it is being added to).

  7. John this plugin looks awesome!
    Could you help me with a code question asap?

    i’ve installed the newest WPBOOK and no matter which way i code it I still get an

    ?fb_sig_in_iframe&wpbook=comment-handler
    error of some kind
    either it dosn’t process or the screen just goes white.
    everything else seems to work fine.
    the app link is

    http://apps.facebook.com/invvote/

    any info would be awesome!

  8. John,

    I really love WPBook! (1.4.2; WP 2.9.1) But getting a page long of error messages in the Page’s tab where the (remote) website content is supposed to be imported to. Like these:

    Errors while loading page from application
    Parse errors:

    CSS Error (line 9 char 8): Unrecognized at-rule or error parsing at-rule.

    FBML Error (line 133): illegal tag “body” under “fb:tab-position”

    FBML Error (line 793): illegal tag “object” under “fb:tab-position”

    FBML Error (line 793): illegal tag “param” under “fb:tab-position”

    FBML Error (line 793): illegal tag “param” under “fb:tab-position”

    FBML Error (line 793): illegal tag “param” under “fb:tab-position”

    FBML Error (line 793): illegal tag “embed” under “fb:tab-position”

    FBML Error (line 795): illegal tag “object” under “fb:tab-position”

    FBML Error (line 795): illegal tag “param” under “fb:tab-position”

    FBML Error (line 795): illegal tag “param” under “fb:tab-position”

    FBML Error (line 795): illegal tag “param” under “fb:tab-position”

    FBML Error (line 795): illegal tag “embed” under “fb:tab-position”

    FBML Error (line 1416): illegal tag “noscript” under “fb:tab-position”

    Runtime errors:

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “script”: App exceeded maximum number of script references

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “script”: App exceeded maximum number of script references

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    HTML error while rendering tag “script”: App exceeded maximum number of script references

    HTML error while rendering tag “link”: There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.

    Cannot allow external script

    (Sorry to load your page with so many…)

    An earlier version of WPBook worked well until it stopped… and I was really looking forward to this one. It’s exactly what we need…

    Also, with this version, while going to the App profile (if that’s the right term) I was able to see the content imported from the origin website just fine. Somehow, it fails to load properly into the FB Page Tab. In fact, it went to Boxes and was OK in a box, but I wanted it going to a Tab, and the output is as you see above.

    I imagine it’s just my settings that are incorrect somewhere…

    Last question: might it be because I don’t know what to put in Profile Tab > Tab URL ??? I now have it blank… I followed your instructions fully, and I think correctly. But this one box is not covered.

    Would very much appreciate your advice. And thanks for a terrific app!

    Best,
    Moshe

  9. Looks like you’ve edited the comments.php that’s included in the WPBook theme directory? Either that or you have some plugin active which is changing the way the comments form works?

    If so, please try with the “vanilla” out of the box wpbook first, and with any plugins which impact comments disabled.

    Check you general settings in WordPress – have you supplied the “Blog Address (url)” on the Settings->General page?

    Finally, please consider submitting issues in the wordpress forums so I can track them more easily – thanks.

  10. Moshe – what’s the url of your app in Facebook?

    Generally errors like this have to do with trying to force HTML where only FBML is allowed.

    When you say

    in the Page’s tab where the (remote) website content is supposed to be imported to

    I’m not sure what you’re referring to. If you are trying to put your blog on a Facebook Tab, note that Facebook Tabs only support FBML content and no iFrames – therefor WPBook will not work there.

  11. John,

    Sorry for not being clear enough!

    The app on FB:
    http://www.facebook.com/developers/editapp.php?app_id=251645067579

    The Tab you’re asking about is the tab I created on the page where the content from the website is supposed to be ‘dropped off.’ I called it Content, and here it is:

    http://www.facebook.com/pages/Israeli-Occupation-Archive-IOA/425291775155?v=app_251645067579&ref=ts

    So, you’re saying it won’t work in a tab – which may be the very problem I’m experiencing. Not sure why, but my impression (from reading something) was that it was going to work in a tab. Obviously, I’m wrong…

    Is my only choice, then, to have it in a ‘box’ under Boxes? Do I have other choices/’sub-choices’?

    Like:

    – Can I isolate the container (box) in a separate tab and rename it so that it will be more obvious to the Page visitor what’s inside?

    -Is there a way to have it in a box on the left margin of the Wall of the page?

    -Can it be part of the Wall content itself? (If so, I hope it can have an Expand/Collapse button option.)

    As you can tell from my questions, I’m new to FB… I’m pretty good with html, and ok with WP, but totally new to FB. But I can follow instructions pretty well.

    Thank you very much again for responding, and so fast!

    MN

  12. Got it. The current WPBook does not support Facebook “tabs” as those are restricted to FBML only, which means I’d need to strip content from the blog posts to get them to show up.

    What you get is the ability to see the posts on the Facebook Application itself, at a url that looks like: http://apps.facebook.com/applicationname/

    Where the application name is what you gave in the Facebook settings when you setup your app. (I can’t go to the URL you provided as your application’s URL as that is the developer’s view – the users view will be the equivalent of http://apps.facebook.com/openparenthesis/ which is my blog).

    What you can do is move the box from the Boxes tab out to your profile, or add the box to your Page – following the PDF/HTML directions included with the plugin. (See, for example, our Optaros page, and at the bottom of the left column in that page the “Open Parenthesis” box.

    In terms of having the content as part of the Wall itself – ie, posted into your activity stream, I’m working on that for 1.5.

  13. John,

    Thanks again for your excellent advice!

    I now realize that when I remember seeing the content inside a tab… it was, indeed, in an earlier version of the application which I named similar to the page name itself: “Israeli Occupation Archive – IOA” Here is the page:

    http://www.facebook.com/pages/Israeli-Occupation-Archive-IOA/425291775155?v=wall

    Given my existing Page name (above, whose username will change to something more user- friendly once there are 25 fans), and my preference to display the content in a larger format…

    QUESTION: How do you suggest incorporating an App display with an existing FB Page?

    From a usability and outreach/’marketing’ standpoint, it would seem counter-intuitive to duplicate the Page with an App page that is similarly (but not exactly) named, no? It seems to me that it would make finding the Page even more difficult, and returning the reader from the App to the Page very challenging.

    On the Boxes option: I seem to have deleted the Boxes tab. Not sure how to restore it other than via creating a static FBML tab app (which I just found when searching for a solution)… but FBML might not agree with your great App, no?

    QUESTION: Can I re-size (enlarge) the Box in the Boxes? If so, I just need a Boxes tab…

    I don’t mind displaying the content in a small box on the Page. Can I have a link at the bottom of that profile-box that takes me to the Boxes tab, for better viewing?

    AND, can I have *both* profile-box and Boxes tab displaying the same content at the same time? If so, what would be the address of such tab on the link I add to the profile-box?

    OR, if I were to recreate your App with a name similar to that of the Page (not my preferred solution – because it would be difficult to ‘return’ the reader to the Page…), and added a box on the Page profile, can I link from that box to the larger format App display?

    Didn’t mean to burden you with so many questions… Please answer only what/when you can…

    Thanks again,
    MN

  14. John,

    I hope you can see the page below.

    I just ‘found’ this… obviously, a product of WPBook and I got there from the Applications page – but not sure how (sorry, I know it sounds dumb…)

    http://apps.facebook.com/israeli-occupation/

    Now, to recap the above, THIS is what I’d love to have: this is *perfect* Can you think of how I can incorporate this, more or less, into the Page I have set up (address above)?

    Thanks again!
    MN

  15. The page you “found” is the Facebook App created in the process of setting up WPBook. That page is a facebook application view of your blog content.

    The problem is you cannot put that in the Page you have setup, as it is an iFrame application.

    What you will be able to do in later version is get the excerpts of blog posts into your page’s wall, pointing to the application for full text.

  16. You can’t change the size of boxes in the boxes tab, or in the wall (left column under the page’s picture).

    The box by default shows the 5 most recent posts and links to the application view for the longer version – you can see the profile box in the left nav of my profile or of this page – clicking on a post title there brings you to the Facebook application view of that post.

    If all you want to do is post notices when you publish a blog post, use the Notes app provided by Facebook and set it to import your blog’s RSS feed – for this you don’t even need WPBook.

  17. Overall this is a wonderful plugin! I love it.

    I’m having one small issue though. The box created on the Facebook user’s profile is not automatically updating to the latest post.

    The main part of the app http://apps.facebook.com/murkypond updates correctly, but the profile “box” doesn’t do so until the user goes to the application itself.

    Any help – or correction of an ID10T error on my part – would be appreciated greatly.

  18. Hey John,

    Thanks for your help. What you said totally worked.Thanks for takin’ the time out to check. If you’ve got the time i’ve got one other question. I’m needing to add a bunch of other FBML elements which isn’t a problem however every element I add ends of getting squished or cut off. I was wondering there a certain CSS element in WPBook that controls either padding or something similiar. I’ve messed with nearly css element I can find but havent had any luck. additionally any elements I add seem to get over ridden. Any thoughts? Thanks for an incredible plugin!

  19. Hi John,

    I a a bit new to wordpress, and have absolutely no idea how to install the plugin so that I can put my blog on Facebook, I have done the facebook side of it, but no idea about this side.

    I might be blind but I can’t even see the plugin to install. FYI I am not a coder or developer, just a regular facebook user :)

    Thanks,

    Lara

  20. John,

    Thanks again for your help. You said:

    What you can do is move the box from the Boxes tab out to your profile, or add the box to your Page – following the PDF/HTML directions included with the plugin.

    May I have the link to the “PDF/HTML directions” – looked for it both here and on the WP plugins pages and can’t find.

    I learned from our discussion that what I really need is the ability to automatically post the blog excerpt on FB – you said ver 1.5 will do it.

    Any sense when 1.5 might be available? If soon, I might just wait.

    Thanks again,
    MN

  21. This is too slick to miss. I posted above but I wanted to show you something amazing. I redirected my canvas page to a “deep integration” of bbpress with one of my wordpress blogs – you can see the app here http://www.facebook.com/tribe12flat and navigate to the application itself which is running from the plugin. You have to enable “smart sizing” in the fb app to get this to work properly or the page won’t scroll.

    Doing all this was easy, however deep integration of bbpress is pretty tricky.

    Thanks John for your great plugin!

  22. Not sure what may be happening there. I’m assuming you’ve updated to 1.4.2?

    The plugin tries to update the box when posts get published – sometimes that Facebook API call fails, and on 1.4.2 when it does you get a rather dramatic “uncaught exception.”

    I assume you’ve got the FB ‘secret’ and ‘key’ filled in correctly.

    Can you start a thread here in the WordPress Forums? Easy to reply and have discussion there.

  23. Moshe – the link is provided in the plugin itself.

    Go to your wordpress dashboard, logged in as an administrator.

    Go to Settings->WPBook

    At the top of that page in the section “Setting Up your Facebook Application” there is a link for “Detailed Instructions”

    Or, download the plugin at the plugin repository, unzip it, and look for the pdf version in the plugin folder of the download.

  24. Thanks Stuart – glad it is working for you.

    The idea behind setting the size of the iFrame in Facebook to “resizeable” rather than “smart size” is actually to avoid the scollbar – Facebook javascript automatically will resize the iframe to the content length.

    If that resizing is failing (making the iframe contents longer than the size of the iframe, essentially cutting off content), you likely have a javascript error – check the error console.

  25. Yes, firebug. There’s a Facebook provided javascript that is called from the index.php in the theme:
    FB.CanvasClient.startTimerToSizeToContent();
    It loads when the iframe is finished loading and resets the height of the iframe to fit the content, eliminating the “scrollbar within a scrollbar” effect.

    But it is finicky. If other javascript erros happen on the page they can prevent that call from firing.

  26. John,

    THANKS! I finally got it to work properly… :-)

    Eagerly awaiting ver. 1.5 – we definitely need the excerpt rolling into the Page Wall.

    A couple of tiny comments on possible improvements:

    1. It seems that when entering a link in the Custom Footer box, starting with http:// it ends up not as a live link… It would be nice to have yet another opportunity to direct the viewer to the original website/blog article page.

    2. Not sure whether it’s possible to have the app running in *both* a FB tab and on the Wall. Might be useful.

    3. Not sure whether it’s possible to have the app running on both a Profile and a Page at the same time. I know I’d like to do that…

    Thanks again!
    MN

  27. Yep – 1.5 will be a major leap forward. I’m testing betas now.

    1. Hmm. Have you tried entering the full html (a href= and all) for a link?

    2. Right now you can’t have the app running in a FB tab at all. FB Tabs only allow FBML.

    3. You can add the application to multiple pages and multiple profiles – it is designed to be added to all your blog readers’ profiles.

  28. John,

    1. Well, I started without the href and got a dead link… Now, I enter the following in the custom footer box:

    Posted on %date% at %time%.
    To view this and all other articles, commentaries, and much more, go to: http://www.israeli-occupation.org

    When I save it (still within WP, WPBook app setting page), it turns to the following:

    Posted on %date% at %time%.
    To view this and all other articles, commentaries, and much more, go to: http://www.israeli-occupation.org

    Note the extra slashes in the link, resulting in a working link leading to a 404 error…

    I tried keeping the trailing slash after the domain name and it made no difference.

    Is it something wrong I’m doing?

    Thanks again!
    MN

  29. John,

    Obviously, my explanation didn’t go thru properly, but I think there’s a real problem…

    Here I go again:

    When I enter the following into the Custom Footer box:

    Posted on %date% at %time%. <br />
    To view this and all other articles, commentaries, and much more, go to: <a href=”http://www.israeli-occupation.org”>www.israeli-occupation.org</a>

    After I Save the WPBook settings, it changes the above into the following:

    Posted on %date% at %time%. <br />
    To view this and all other articles, commentaries, and much more, go to: <a href=\”http://www.israeli-occupation.org\”>www.israeli-occupation.org</a>

    Again, note the extra slash \ after href= and after .org

    You can also see it on the FB end on the following post entry – I believe it should be visible to all FB reader:

    http://apps.facebook.com/israeli-occupation/2010-01-25/hamas-attack-mubarak-over-new-gaza-wall/

    Please go to the footer of the post displayed on this FB page and hover over the link. While hovering, observe the url address that shows at the bottom of your browser (status bar) – it has them extra slashes that point in the wrong direction [ \ ]… which you may be able to see above now that I used the < instead of the < to define the link.

    So, I may be doing something really stupid, or there might be a problem wheh WP saves the custom footer that includes a link.

    Thanks again!
    MN

  30. Follow up to the above:

    When you hover on the link on the FB end, you can see that the link is bad in a number of ways, not just the slashes. Somehow, rather than taking the viewer to the homepage, the homepage url gets added to the page address. I wonder how that happens.

    Thanks again,

    MN

  31. Installed 1.4.2 Everything works perfectly, except the recent post links. My permalink is using %category%/%postname% but in facebook the url is not resolving properly. It keeps adding empty frames within frames when the page tries to load.

  32. @Moshe Neeman

    Use this at your own risk. I have not tested it very much.

    plugins/wpbook/theme/config.php

    in the function custom_header add
    $homeurl = ''.get_bloginfo('url').'';
    after the line that starts$permalink around line 103.

    then

    add $custom_template_header = str_replace("%homeurl%","$homeurl","$custom_template_header"); after the line for $permalink about line 136.

    Upload the file to the plugins.

    Then add %homeurl% in your footer.

    Use at your own risk. I am not a trained PHP programmer.

  33. $homeurl‘ <a href=”‘.get_bloginfo(‘url’).'”>’.get_bloginfo(‘url’).’ </a>’;

  34. blah,finally got it all correct

    $homeurl = ‘ <a href=”‘.get_bloginfo(‘url’).'”>’.get_bloginfo(‘url’).’ </a>’;

  35. One more reminder.

    Save a copy of the original config.php if your a novice in case of something going wrong.

    If this function is not added by developers, you will have to repeat these steps in the future every time you upgrade.

  36. I couldn’t get my site to scroll so I replaced some code with this at the bottom of themes/index.php

    FB_RequireFeatures([“CanvasUtil”], function(){
    FB.XdComm.Server.init();
    FB.CanvasClient.startTimerToSizeToContent();
    });

  37. Peter,

    Thanks very much!

    Because I’m not too comfortable with php…
    and I’d need to re-patch it each time the plugin gets updated… I’m going to skip this one.

    I hope John gets a chance to review the problem
    and then he’ll see whether it’s in the current
    code or a problem of my doing.

    I’m leaving the faulty custom footer code for a while longer.

    Thanks again, Peter, and MANY THANKS! – John…
    MN

  38. thanks for the great plugin.

    i do have a problem, i can’t seem to get the scroll bar to come up in facebook, nor will facebook resize its own page to match my blog. i have all the settings as posted, iframe, resizable, etc, but no luck. i’ve played around and set all the options to something else in hopes of fixing it, as well as tried ryan’s tip for the theme/index.php file.

    if i keep the options as outlined, you *can* scroll if you use the down/up arrows on your keyboard. not exactly ideal tho.

    thanks!
    justin

    links: http://www.verywhitenoise.com
    fb: apps.facebook.com/verywhitenoise

  39. @justin – generally this means you have a javascript error.

    In your case I get an error about FB_RequireFeatures not being defined.

    Not sure why that may be happening, but usually it means that the Facebook JavaScript has not been loaded – are you running any plugins which try to check the parent href url? (Redirect, request rewrite, frames busting, etc?)

  40. @john – thanks so much for your reply. i do have a redirect going on w/ the URL. changing the canvas setting to the true home fixed it!

    thanks again.

  41. I just installed and tested the plugin briefly and every thing seemed to work smoothly. Eagerly waiting on the 1.5 release.

  42. John, Great Plugin for WP!

    Hope to see the 1.5 version soon, as the integration with the pages will make WPBook a killer plugin for Facebook – WordPress interaction.

    If you need a Spanish native speaker for plugin localization or instructions -whatever-, let me know.

  43. Yap. My bad, I was so caught in the comment stream and didn’t check for my installed version: “Versión 2.0.12 | Por John Eckman” it was indeed.

    Should the FMBL problem be fixed by now? I mean when you try to insert the created App in a Tab from a Page Profile. I get all sorts of warnings :(

    Perhaps it’s just me…

  44. I don’t know of any “FBML Problem” in the current versions – please open a discussion in the support forums with the details of your issue.

    Generally errors with the tab mean you’ve not supplied the right setting for tab url in the FB settings for your app – as described here.

  45. My very bad bad! I copied the setting from another instruction, and as you said I wasn’t supplying the right setting for the tab. Sorry :$
    Bad user, GREAT plugin!
    Thanks for the help, though I know this wasn’t the place.

Comments are closed.