[resolved] members only wordpress site as a FB app (7 posts)

  1. aliferis
    Posted 4 years ago #

    Hello again.

    I have successfully setup a WP site as a FB app using your plugin (awesome)

    I have also now gone a step further and encountered an issue I hope you may regard as a bug or future upgrade.

    I have made my WP site members only (login on front page to access home) - then I have used another 3rd party plugin to authenticate my WP users from an external database.

    This works well.

    (note: my WP site is for members of an existing web service)

    Now, I have tested all this is facebook - the FB app canvas correctly shows the WP login page if the FB user does not have a logged in session in their browser for the WP site.

    In the FB app you can login to the WP site. - and here is the issue:

    After login, the FB app shows the proper WP home page (not the FB styled version) - so I guess its just the WP site home page in an iframe.

    If I then refresh the FB app canvas it loads the correct FB app canvas look of WPBook

    I hope all this makes sense. It might be better to see it all in action



  2. John Eckman
    Plugin Author

    Posted 4 years ago #

    Joe - it does make sense.

    Members-only sites in WP isn't something we've really thought through, actually.

    My guess is we need to find some kind of hook/filter that fires in WordPress when someone successfully logs in, that controls to what url they are redirected to.

    Facebook is adding a signed_request parameter to the iframe call when it first loads the canvas, but my guess is that gets lost during the login exchange.

    Unfortunately this just isn't supported by the current code - I'll add it to our wishlist of features but can't promise any specific timeline as it really just depends on my spare time to work on it.

    Others reading the forum who are coders - or yourself if you are - patches welcome!

    This woud be a great thing to contribute if someone had the time . . ..

  3. aliferis
    Posted 4 years ago #

    thanks for your reply

    often there are options for what to do after someone successfully logs in to WP - perhaps these might make a difference to how the FB canvas behaves?

    Can this FB app use FBML instead of iframe ?


  4. aliferis
    Posted 4 years ago #

    have a look at these options for a members only plugin - any of these help me ?


  5. John Eckman
    Plugin Author

    Posted 4 years ago #

    Not sure. You might be able to use one of the "redirect once logged in" settings and point to index.php?signed_request=1

    That should trigger the FB detector

  6. aliferis
    Posted 4 years ago #

    thanks, I'll give that a go now


  7. aliferis
    Posted 4 years ago #

    I think I just achieved the desired effect by putting this at the end of the canvas URL


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WPBook
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic