WPBook Lite
Multisite WPBook Lite not storing access token (3 posts)

  1. wsitch
    Posted 3 years ago #

    Hi John,

    My wife and I share one installation of wordpress.org configured as a multisite. We would like to link each site to a different facebook profile, but the access token returned by facebook isn't being stored.

    We're using WPBook Lite (no https) and have setup applications in facebook. We configured as recommended in your documentation and when we click the "Generate Access Token" we have given approval for the app to access our data.

    The generate access token is referencing the appropriate client_id, redirect_uri, and scope:

    Facebook comes back with what looks like the token in the URL which reloads the appropriate multisite page (sara.sitch.org in this case), but there is no "token saved" message and the WPBook Lite isn't showing a token is stored.

    Here's the return URL (code changed):




  2. wsitch
    Posted 3 years ago #

    Ok, after some poking around I found what looks like the problem.

    Line 640 of wpbook-lite.php calls wp_remote_request. It never returns, anything after this line doesn't get executed on my system.

    I added "echo $token_url;" into a new line just before the wp_remote_request call, and I see this:

    It looks right, but there's no error message, code just isn't evaluated after this line.

    From the website I see the page of my multisite blog that I'm trying to match to my facebook account with the URL encoded as follows:

    I don't know what those last four characters are. I don't know why wp_remote_response is failing without throwing an error. Could this be related to some Curl failure?

    I'd really like some help here!


  3. John Eckman
    Plugin Author

    Posted 3 years ago #

    Hmm. To be clear, WPBook (and WPBook lite) weren't really intended to be used in a multisite instance.

    But that doesn't help solve the problem, just makes it clear I never tested for it.

    Can you try 1.5.4 and see if you have the same problem?

    Note that this whole function relies on wpbook_query_vars to parse the token out of the response.

    Not sure what else might be failing here - let me know if you're still pursuing this option

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WPBook Lite
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.