WordPress.org

Ready to get started?Download WordPress

Forums

WPBook
[resolved] Cant generate access token (8 posts)

  1. EGBlog
    Member
    Posted 2 years ago #

    Hi

    I have been attempting to set up WPbook Lite, but I get this error message:

    WP Error occured in trying to get token: Token url was https://graph.facebook.com/oauth/access_token?client_id=404093886282826&redirect_uri=http://www.electric-guitar-blog.com/%3Fwpbook=oauth&client_secret=0f7fd20ab558c44138456270fafa69b4&code=AQDU1J7wnV-UqOh_yW3vLv3-z5EP2h7DOJ9bbXzfWmLyne5cZsjOBboMYmwyfun6DLse1fCV9BzIeV7YPQo6AtmRFp4K-mp1xOEu8YeV7THwt65tejUGdJe2i-hWOk8-Z3m40vVycQS_nXCCq2YnNIxNdbnb-S8NpR-prTdqYO5bWgC1Aie7TER4HdLlK3Moqms WP Error is SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

    I picked the Lite version as I thought this would avoid this. I have been playing around with all the settings in my app and the plugin now for several hours and am getting fed up with it. BTW, my fan page has the new timeline.

    Anyone got any ideas? thanks

    http://wordpress.org/extend/plugins/wpbook/

  2. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    I believe this is happening during the connection to Facebook for the API calls - not related to accessing your blog in https (which is the part WPBook Lite eliminated).

    In the settings for WPBook Lite (inside WordPress) there is an advanced setting down near the end of the page which is titled "Disable Facebook SSL verification" - can you check that setting and then try again and report back?

    There's lots of discussion about this error around the web - I think there is an issue with outdated certificate bundles or something, but disabling this verification should fix the problem.

  3. EGBlog
    Member
    Posted 2 years ago #

    I've just given that a try, still getting this though:

    WP Error occured in trying to get token: Token url was https://graph.facebook.com/oauth/access_token?client_id=404093886282826&redirect_uri=http://www.electric-guitar-blog.com/%3Fwpbook=oauth&client_secret=0f7fd20ab558c44138456270fafa69b4&code=AQBerknHJJjlraqDMuXppeMLRMBlgHjrXTKBst1l8hxen6iUTg0E1vH-TND1TBdKENlxokyUf4bxyk7S_DHlsyDo2zhAOyWKDsZAIiJouNA3C3rqgGvraX8KpM2qD4491a3qE2Dhxzf2KYtYUjhq4U488byYL2OnuPy-4uiZ9uxLATns-kSt3IeuDrtvHiR4UCA WP Error is SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

    :-(

  4. Liam-Og Griffin
    Member
    Posted 2 years ago #

    I'm having the same problem.

    App address: https://developers.facebook.com/apps/383576848341938/

    Website address: http://scrapyard.k2c.ie/

    I have inputted App Id, App secret and my user ID and when I go to "Generate Token", I get the following error:

    WP Error occured in trying to get token: Token url was https://graph.facebook.com/oauth/access_token?client_id=383576848341938&redirect_uri=http://scrapyard.k2c.ie/%3Fwpbook=oauth&client_secret=324eda932e6feb8636af3c34229d46b7&code=AQCSNlZPWDxjmiqjmj5rFINhphtzeNsmfkjKCidxsqBPDIbuSq47WmlB8ETVwi5uVLJsIw7avfRs38dashC4lMAj6I22T6gSUlqOTE0K1RXOov7RtSGte02CTGPFoO81s1BHLrxCV4EhHDyMyRia3EmL1BI-j6b57s92dYyB-PCLnx5jezGjHbu7KN7Ahy2TUYY WP Error is SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

    Any ideas?

    Thanks in advance.

  5. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    Ah, so this is happening right at the moment WPBook goes to get the token.

    For that call, WPBook Lite (you're not using regular WPBook, are you?) uses WordPress' built-in wp_remote_request function.

    That function in turn relies on Curl, which is trying to validate the SSL certificate Facebook responds with.

    So, I need to update the call to wp_remote_request to pass sslverify=false

    Hopefully I can get to that this weekend

  6. Liam-Og Griffin
    Member
    Posted 2 years ago #

    Hi John,
    It's WPbook Lite I'm using alright.
    Thanks for looking at it. Best of luck with the hunt :-)

  7. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    Nevermind, turned out to be faster than I expected.

    Just checked in a version with sslverify turned to false for getting token from Facebook.

    If you update to 1.3.1, let me know if it solves the problem for you.

  8. Liam-Og Griffin
    Member
    Posted 2 years ago #

    Worked a charm... thank you for your time!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags