• Resolved L L

    (@neuralgourmet)


    I saw your blog post about the deprecation of offline_access and how we’d need to generate a new access token every 60 days, but I’m being repeatedly, every few page refreshes in the WP dashboard, told I need to generate a new token.

    Your Facebook Access Token for WPBook Lite has expired. Please visit the settings page for WPBook Lite and grant a new access token. Until you do so, cross-posting to Facebook and import of comments will fail.

    I generate the new token, and everything seems to go successfully, but a few minutes later I’ll get the message to generate a new token again.

    Also, no posts are being published since the most WPBookLite update.

    https://www.ads-software.com/extend/plugins/wpbook-lite/

Viewing 15 replies - 16 through 30 (of 42 total)
  • John,

    so, I did catch the bit about private browsing. Sorry I didn’t mention it in the last post. My FB migration settings are as they should be as well. I’ve tried it in several browsers and have reset each browser before trying to generate the tokens. I even completely deleted the app from Facebook, deleted the plugin from WP, reset all browser data and, re-installed/created everything from scratch to no avail. Still exactly the same issue.

    1) successfully generate tokens for both my profile and page.
    2) save everything
    3) write a post /publish
    5) the great white death
    6)refresh page
    7) WPbooklite says “access token invalid”
    8) post shows up on WP, not on FB and/or page.

    Could FB have a cache for these tokens once you set them up or something? Maybe I’ll try creating a completely different app and trying to link to it. Not sure what else to do. The plugin doesn’t seem to work for me at all. Not knocking the Plug-in, i’ve used it since you created it and LOVE it.

    I am having the same issue and have tried every browser, multiple facebook accounts, made a new facebook etc. It has the white screen after posting and then there are no errors anywhere in the logs in apache and the token is then said as being expired. When I debug the token in facebook it says it will last for 2 months. As of not the plugin does not work at all.

    Looking for the right plugin to publish posts to my Facebook page when they’re published on my site and having no luck because of these cursed access token expiration problems. I’ve followed the steps in this thread and it keeps failing.

    Is this just an issue with this plugin in the last few days?

    It also invalidates access token and locks on the white screen when “Publish this post to Facebook Wall” = No. The only way that I can avoid it is by disabling the plugin.

    Please help, I would really like this plugin to be the one.

    Plugin Author John Eckman

    (@johneckman)

    Thanks all for your help debugging this – turns out there was a bug in 1.4 – a simple mistake in a variable name*.

    I’ve just tagged and released 1.4.1 which should be available by the time you read this – please upgrade immediately.

    After you upgrade to 1.4.1, go look at your WPBook Lite settings page. If it shows a valid access_token you should be fine with no further effort. If it currently shows “invalid” for access token you will need to generate a new one once more.

    *The bug was such that any attempt to publish to Facebook was invalidating the access token. Somehow I introduced this mistake after uploading the test version to my test blog, which is why I wasn’t seeing it. Sorry.

    John,

    Thanks for the update! It publishes to my FB profile now but I get the following error after it’s published.

    Caught exception for page access token: Unsupported get request.Error code: 0

    It does not publish to my page. Is this a WP issue not related to the plug-in? SOrry, I’m a bit of a good to all of this and am still learning the basics.

    Plugin Author John Eckman

    (@johneckman)

    @minegro Inc – can you open a new thread for this separate issue.

    Didn’t see this at the bottom of this thread.

    To put in that post:

    What is the page id to which you are trying to publish?

    Do you have debugging enabled? If so, what turns up in the debug.txt?

    Do you have a page access token shown on your WPBook Lite settings page? Have you validated it using the Facebook token debugger?

    Hi, I am having the same problem as above: get the token, write a post, get a white screen, go back to wp admin, and then the error message (Your Facebook Access Token for WPBook Lite has expired. Please visit the settings page for WPBook Lite and grant a new access token. Until you do so, cross-posting to Facebook and import of comments will fail.) “Remove offline_access permission is Enabled. I also set up an Auth Dialog because it seemed to require.

    Just doesn’t seem like the token is being stored.

    The site is https://westtexaspictures.com, the user is https://www.facebook.com/mark.short.338.

    Please advise.

    Plugin Author John Eckman

    (@johneckman)

    @mmorrow4393

    Assume you are running the latest WPBook Lite – 1.4.3? If not, upgrade first.

    Immediately after granting a new token (but before trying to publish a new post with it), go and look at your WPBook Lite settings page. Copy the token stored there, and check it with the Facebook Access Token Debugger: https://developers.facebook.com/tools/debug/access_token

    Most likely what’s happening is that Facebook is still sending short lived access tokens. You may need to deauthorize the application (go into your Facebook account settings, find your WPBook app, and remove all permissions / remove it from your profile). Then re-add the application, which should generate a truly NEW access token.

    Hi John,

    I tried all of the above and it is still occurring. The debugger said the token was good for two months. I also deactivated and deleted the WPBook Lite and downloaded a clean version. This same behavior:

    1) successfully generate tokens for my profile.
    2) save everything
    3) write a post /publish
    5) the great white death
    6) refresh page or go back
    7) WPbooklite says “access token invalid”
    8) post shows up on WP, not on FB and/or page.

    I did check the following but do not know how to access these:
    Enable WPBook to create a debug file
    Show errors posting to Facebook Stream

    The site is https://westtexaspictures.com, the user is https://www.facebook.com/mark.short.338.

    Please advise.

    Plugin Author John Eckman

    (@johneckman)

    mmorrow4393 – sorry to hear you’re having issues.

    I assume you are running 1.4.3?

    To what targets are you publishing? (Personal profile wall, page, and or group?)

    At step 2, when you say “save everything,” can you go back to your WPBook Lite settings page and check your token(s)? (you may have one for profile and one for page, depending on what you are publishing to).

    To check your debug file, look inside wp-content/plugins/wpbook-lite/ and see if there is a debug.txt file there, which will have some detail in it about what is happening.

    All I can imagine is that there’s some confusion between the individual profile and a page ID – the place where WPBook asks for YOUR profile ID it should an individual profile not a page.

    Was it working for you before?

    Hi. I’m suferrig from this error, but also have this warning message.

    Permissions for pages

    You’ve indicated you wish to publish to this page: XXXXXXXXXXXX

    Could not get accounts list from Facebook. The access token could not be decryptedError code: 0

    Plugin Author John Eckman

    (@johneckman)

    That means there’s something wrong with your access token for your Profile.

    WPBook is trying to use your personal access token to find out what pages your profile has access to publish to.

    Are you sure your settings are correct for YOUR profile ID and page ID?

    Profile ID must be provided even if you don’t plan to publish to your profile.

    Hi, The WPBook Lite is working perfectly for +- 2 months and the errors above appeared (the access token invalid and the decrypt error). Something changed and was not my configuration.

    Plugin Author John Eckman

    (@johneckman)

    JnManso – sure. Facebook changes things in their API all the time. WPBook Lite does get updated from time to time, in order to keep track with their API updates.

    I’m just telling you that the error you report: “Could not get accounts list from Facebook. The access token could not be decrypted” – which has been returned by Facebook, means WPBook Lite is for one reason or another getting a bad access token for the account set as YOUR profile ID.

    When you visit your WPBook Lite settings page in WordPress, does it tell you it has stored an access token for your personal profile?

    Can you check that access token in the Facebook tool for checking access tokens and see if it is valid?

    After generate a new token and use the facebook tool

    https://graph.facebook.com/me?access_token=AAAC…AnP

    I get

    {
    “error”: {
    “message”: “The access token could not be decrypted”,
    “type”: “OAuthException”,
    “code”: 190
    }
    }

Viewing 15 replies - 16 through 30 (of 42 total)
  • The topic ‘[Plugin: WPBook Lite] Repeatedly being asked to generate new access token’ is closed to new replies.