• 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 12 replies - 31 through 42 (of 42 total)
  • Plugin Author John Eckman

    (@johneckman)

    JnManso

    This most likely means that what you’ve provided as YOUR profile ID is not an actual profile ID.

    What is the profile ID you’ve entered?

    Plugin Author John Eckman

    (@johneckman)

    Were you using this tool to debug your access token:

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

    Stored access token = AAACdGKdfrUYBAFSD1IMZBlJbqbLIaiZC8ZAtcO0keZCu7XVKc3BsBu6FTrkZBHl7FO8SXgZAM88WyZAZCoMKdUNFg0hqd1y5AnPkd

    Then

    https://developers.facebook.com/tools/debug/og/object?q=AAACdGKdfrUYBAFSD1IMZBlJbqbLIaiZC8ZAtcO0keZCu7XVKc3BsBu6FTrkZBHl7FO8SXgZAM88WyZAZCoMKdUNFg0hqd1y5AnPkd

    Result

    Scrape Information

    Error Parsing URL Error parsing input URL, no data was scraped.

    Plugin Author John Eckman

    (@johneckman)

    So this tells me that the access token isn’t the right kind of token in the first place.

    This means the settings are wrong either in your Facebook application (migrations or other settings) or in your WPBook Lite settings in WordPress – most likely it is a profile ID issue.

    What is your profile ID, and what is the ID of the page you are trying to post to if different than your profile ID?

    Do you have your profile ID set in your WPBook Lite settings, and have you generated access tokens since then?

    I have been having this problem for about a week now. I followed all the steps listed here, and confirmed the settings in the facebook application tab.

    No matter what I try I can’t change the behavior.

    In my case I noticed that changing the “YOUR Facebook Profile ID” value doesn’t change the access token. I don’t know if this is normal?

    Also, when I generate the access token I see a blank page with this information:

    Succeeded in saving Access Token ….functions.php at line 2707 function n/a (deprecated_argument_run, get_bloginfo, The home option is deprecated for the family of bloginfo() functions. Use the url option instead., 2.2) …..general-template.php at line 405 function n/a (get_bloginfo, 2.2, The home option is deprecated for the family of bloginfo() functions. Use the url option instead.) ……wpbook-lite.php at line 644 function n/a (home) …….n/a at line n/a function n/a

    I am definitely perplexed.

    Plugin Author John Eckman

    (@johneckman)

    Jeff – when you generate the access token, and go and view that access token on your WPBook Lite settings page, can you validate it using the Facebook tool? ( https://developers.facebook.com/tools/debug )

    Looking at what Facebook thinks of the token you have stored is the fastest way to see if it is valid.

    What is your Facebook profile ID, as set in wpbook lite settings?

    Are you also trying to publish to a page or group, in addition to (or instead of) your personal wall? You should see a page token stored as well on your WPBook Lite settings page if you are publishing to a page.

    Finally, if Facebook keeps generating short-lived tokens, you might need to remove the app from your profile and then re-add it to trigger the change in migration settings.

    Putting the token:
    AAAFGBO2k7mQBAKoZACDsnsPjHtCyPApfDSgTW5c715XC2ZB47JMp3ZCOJlPBfTZAImZBjIKnoUVCKcA9ofk7nXpJemeAmaNRqp
    Into the debug page give me the message “Scrape Information, Error Parsing URL: Error parsing input URL, no data was scraped.”

    My profile id is: 669484991

    Trying to publish to a page, it’s id is 321045851284159. It should point to https://www.facebook.com/SparkleGear

    Under the permissions for pages heading this is what is displayed:
    You’ve indicated you wish to publish to this page: 321045851284159
    Could not get accounts list from Facebook. The access token could not be decryptedError code: 0

    I don’t see an additional token stored for the page.

    If you take a look at the page you will see that there are many posts pointing back to our website. These were all made by wp-book lite, and with the current configuration settings. So somewhere something changed. The posts stopped about the time I updated to the latest version (1.4.1 -> 1.4.3), it could also be that the token expired and for an unknown reason a new token can’t be generated.

    Plugin Author John Eckman

    (@johneckman)

    Hmm. That is the right profile ID and page ID. What’s happening is that when wpbook tries to use your personal access token to retrieve a list of accounts it is failing because Facebook can’t retrieve your accounts from that list.

    Seems as though perhaps Facebook made some change on their side. They are generating access tokens that they cannot in turn decode?

    Code 190 would seem to be “Invalid OAuth 2.0 Access Token”

    From a bit of googling around, it seems that maybe the issue is that these tokens no longer contain user data, and I can’t rely on the /me call anymore – will have to experiment a bit more.

    John, Is there something I can do to help you figure this out? If there is something you want me to capture in the transaction flow from out site let me know.

    Plugin Author John Eckman

    (@johneckman)

    Jeff – thanks. I think I’ve got a line on what’s happening and should be able to push a version 1.5 this afternoon.

    It looks like somehow the version I was running on my test blog was out of sync with SVN, which is why it was working for me and not for others.

    I’ll post a new thread here in the support forums when I tag the release

    Version 1.5 fix my problem. Thanks!

    Plugin Author John Eckman

    (@johneckman)

    Glad to hear it – thanks

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