• 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 - 1 through 15 (of 42 total)
  • Plugin Author John Eckman

    (@johneckman)

    You are running version 1.4?

    Have you checked to see what the setting is for your Facebook application, under Advanced, Migrations?

    If you have “deprecate offline_access” set to DISABLED, you are only getting “short term” token which expire every 2 hours.

    If you have “deprecate offline_access” set to ENABLED, and you generate a new token, you should get one that doesn’t expire for 60 days.

    You can take the token stored (it’s visible on the WPBook Lite settings page) and check it here:

    https://developers.facebook.com/tools/debug/access_token

    Just paste in the whole thing and it should tell you what it’s expiration date is

    Hi,

    I’m having a similar problem in which every time I try to post it goes to a blank screen and when i go to check on the wpbook settings, it says the access token has expired. I re-access the tokens and it seems to work ok but, as soon as i try and post, the access gets revoked again. I have not successfully posted to my FB page or profile since updating. Should I just recreate the app from scratch and do the whole process over? Thanks in advance for your help.

    I’m having a similar problem in which every time I try to post it goes to a blank screen and when i go to check on the wpbook settings, it says the access token has expired. I re-access the tokens and it seems to work ok but, as soon as i try and post, the access gets revoked again. I have not successfully posted to my FB page or profile since updating. Should I just recreate the app from scratch and do the whole process over? Thanks in advance for your help.

    Some problem…

    Thread Starter L L

    (@neuralgourmet)

    Hi John,

    I finally got it to take. For some reason, Fb wasn’t setting a new access token even though it said it was. It was just returning the same old token to WPBook Lite. So I switched my browser to private browsing mode and pasted the URL into the address bar manually. Finally a new long-lived token was generated! Maybe this was some odd combination of browser caching and/or cookies that was causing the problem? I don’t know. I do know I’m happy to have WPBook Lite back in action. Still ticked off that this means we’ll have to generate new tokens every 60 days. That doesn’t feel like the “frictionless sharing” that Zuckerberg was promoting last Fall.

    I finally got it to take. For some reason, Fb wasn’t setting a new access token even though it said it was. It was just returning the same old token to WPBook Lite. So I switched my browser to private browsing mode and pasted the URL into the address bar manually. Finally a new long-lived token was generated! Maybe this was some odd combination of browser caching and/or cookies that was causing the problem? I don’t know. I do know I’m happy to have WPBook Lite back in action. Still ticked off that this means we’ll have to generate new tokens every 60 days. That doesn’t feel like the “frictionless sharing” that Zuckerberg was promoting last Fall.

    Neuralgourmet,

    what URL did you paste into the browser? the URL for the access token?

    Thread Starter L L

    (@neuralgourmet)

    what URL did you paste into the browser? the URL for the access token?

    Yes, the URL to generate the access token, from the link on the WPBook Lite settings page.

    https://www.facebook.com/dialog/oauth?client_id=YourFacebookAppIDHere&redirect_uri=https://YourURLHere/?wpbook=oauth&scope=read_stream,publish_stream,manage_pages,user_groups

    Yes, the URL to generate the access token, from the link on the WPBook Lite settings page.

    https://www.facebook.com/dialog/oauth?client_id=YourFacebookAppIDHere&redirect_uri=https://YourURLHere/?wpbook=oauth&scope=read_stream,publish_stream,manage_pages,user_groups

    I just tried that as well and I keep getting the same results no posts to my profile or page and the access token error. Not sure what else I can do except completely delete the app, the plug-in and start from scratch.

    Plugin Author John Eckman

    (@johneckman)

    @minegro The difference wasn’t pasting the url in, it was that he did it in private mode so no cookies existed – a different browser should do the same.

    Did you switch the migration? (Application settings in Facebook -> advanced -> migrations -> deprecate offline_access must be enabled)

    Otherwise you will only get short lived access tokens

    Thread Starter L L

    (@neuralgourmet)

    @minegro The difference wasn’t pasting the url in, it was that he did it in private mode so no cookies existed

    I concur.

    One note I forgot to mention before: ‘Deprecate offline_access’ was renamed to ‘Remove offline_access permission’. Same setting though — you want it enabled.

    It’s not working :(…

    1. i have set “Remove offline_access permission” to “Enabled” and then waited for 20 minutes

    2. then i tried a different browser ( Crome ) – and delete all cache “from the beginning of time” – and then past the link. I get “Succeeded in saving Access Token Return to your blog”

    3. Then i get back in Firefox and access WPBook Lite Setup – everything seems ok : Stored access token = AAAEeeAiPm….

    4. Then i try to create a new Post and after i press publish … i get a white screen. After i press F5 ( refresh ) … i get : “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 am using : WPBook Lite Version 1.4

    Thread Starter L L

    (@neuralgourmet)

    Bloody hell. Now I’m getting the white screen of failure on posting, and WPBook Lite is saying the access token is invalid again. It was working before. ??

    Here’s the output from the Access Token Debugger page. You can see I am getting the long-lived tokens.

    Application ID
    204956786281166 : Agnosus
    User ID
    730609720 : Leo Lincourt
    Issued
    1337800548 (2 seconds ago)
    Expires
    1342984548 (in about 2 months)
    Valid	True
    Origin	Unknown
    Scopes	create_note manage_pages offline_access photo_upload publish_actions publish_stream read_stream share_item status_update user_groups video_upload

    Plugin Author John Eckman

    (@johneckman)

    @ll when you visit the WPBook Lite settings page, does it list your access token?

    Are you publishing to a page, or a user profile? WPBook Lite stores a different access token for the page different than for the user – it uses the user token and the manage_pages permission to get a new page token.

    Sorry you’re having trouble – it’s been working for me, so I’m trying to narrow down what might be different in your case. Thanks for validating the access token.

    Plugin Author John Eckman

    (@johneckman)

    @green369

    After you’ve published a post and got a white screen, did the post successfully publish? In addition to publishing in WordPress, did it get to Facebook?

    Are you publishing only to a profile or to a group or page?

    @johneckman

    – i am trying to post to my profile ( not a Facebook page )

    – i have also used https://developers.facebook.com/tools/debug/
    and i get :
    Issued: 1337794526 (4 hours ago)
    Expires: 1342978526 (in about 2 months)
    Valid: True
    Origin: Web

    – after the “white screen” the post didn’t get to Facebook but it appears in my WordPress site ( the post was successfully published to WordPress but NOT in Facebook )

    – before posting in WordPress the access token is listed in WPBook Lite settings page, but after i publish a new post i get “Stored access token = invalid” ( and the post is not getting to Facebook )

    Thread Starter L L

    (@neuralgourmet)

    Are you publishing to a page, or a user profile?

    John, I’m publishing to my personal profile.

    Sorry you’re having trouble – it’s been working for me

    No worries. It’s just frustrating because it *was* working for me too.

    FYI: When I post in WP, I get the white screen, but the post is successfully published. Nothing shows up in my Activity Log on Fb. Haven’t had time to look at the WPBook Lite log.

    A thought: Usually the “white screen” in WP means PHP ran out of memory, or timed out. The site I have my blog on though should have enough memory. When I get a chance, probably tomorrow, I’ll try increasing the memory limit for PHP and see if that helps.

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