WordPress.org

Ready to get started?Download WordPress

Forums

WPBook
[resolved] Plugin (wpbook) (9 posts)

  1. aliferis
    Member
    Posted 3 years ago #

    I have managed to setup the app and the plugin with the apps settings.

    It is connecting but the app just shows the WP sites home page

    I want to show blog posts

    Cannot see how to set this up

    anyone help ?

  2. johneckman
    Member
    Plugin Author

    Posted 3 years ago #

    What is the url of your blog outside FB?

    What is the url of your Facebook application?

    What do you have set as the "Canvas Page" in the WPBook settings?

    What do you have set as the "Canvas URL" in the Facebook Settings of your app?

  3. aliferis
    Member
    Posted 3 years ago #

  4. johneckman
    Member
    Plugin Author

    Posted 3 years ago #

    So you have a custom home page that doesn't show blog posts.

    Your blog list page is this one:
    http://apps.facebook.com/gpnetworks/gp-stuff/

    which maps to:
    http://www.gpnetworks.co.uk/newsandsupport/gp-stuff/

    So you could set that, in Facebook, as the Canvas URL.

    However, because your permalinks actually don't include /gp-stuff/, you have to leave the canvas url set to what it is or permalinks will break.

    WPBook just mirrors inside FB what you have outside in a new theme - so in essence have a custom homepage outside FB that isn't the blog list page, but then forcing the blog list page to appear first inside FB is not currently supported.

  5. aliferis
    Member
    Posted 3 years ago #

    got it - thanks

    joe

  6. johneckman
    Member
    Plugin Author

    Posted 3 years ago #

    You could also look into how permalinks are constructed in WPBook - two functions in wpbook.php, on called fb_filter_postlink() and another called wpbook_always_filter_postlink() - basically subtracts the "core" domain of the WordPress host from the permalink (from what it would be outside FB) and then adds it to the canvas url.

    So that challenge is how to get permalinks to work that don't technically contain the canvas url itself . . .

    Must be some solution here but I haven't put my finger on a simple way to do it without breaking other things. ;)

  7. johneckman
    Member
    Plugin Author

    Posted 3 years ago #

    Of course the tab view of your application, which you can add to a FB page (and set as the default tab) will list posts - see this for example:

    http://www.facebook.com/pages/WPBook/44062579871?sk=app_12797741823

    Which is a tab from my OpenParenthesis facebook app added to the WPBook Facebook Page.

  8. aliferis
    Member
    Posted 3 years ago #

    this is where I am now

    http://apps.facebook.com/gpnetworks/

  9. johneckman
    Member
    Plugin Author

    Posted 3 years ago #

    Looks good to me - what approach did you take?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags