• Resolved mpm4pub

    (@mpm4pub)


    I recently installed the WPBook Lite plugin (v. 1.2.3) for a local installation of WordPress. I have successfully created an app id/secret, validated my profile id, and created an app page. However, I haven’t had success generating an access token. The directions indicate a multistep process but I am immediately directed to FB with the following error “An error occurred. Please try again later.” Any suggestions?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mpm4pub

    (@mpm4pub)

    I was able to generate an access token with the necessary privileges using the Graph API explorer. One option is to hard code the token. However, I cannot locate the appropriate variable and first call of the token in the code.

    Plugin Author John Eckman

    (@johneckman)

    The plugin is expecting the access token to be stored in a WordPress Option, as it is used in many different places hard coding it is not a great approach.

    When you visit your WPBook Lite options page in WordPress ( /wp-admin/options-general.php?page=wpbook-lite.php ) you should see a link underneath “Grant Permissions” which says “generate access token.”

    That link should look something like:

    https://www.facebook.com/dialog/oauth?client_id=26798523680425&
    redirect_uri=https://example.com/%3Fwpbook=oauth&
    scope=read_stream,offline_access,publish_stream,manage_pages

    (Without the line breaks of course)

    The client_id should be your app_id, and the redirect should be to your blog url.

    What is your “generate access token” link, and what is the url of your blog, and what is your app_id?

    If the “redirect_uri” part of the link doesn’t match your blog url, that can cause problems.

    If your app setup in Facebook doesn’t match the domain shown in the url, that can also cause a problem.

    Thread Starter mpm4pub

    (@mpm4pub)

    Thank you for the feedback. After specifying the URL in the app settings on FB, the problem was resolved. Regards!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WPBook Lite] Setup – "generate access token" fails’ is closed to new replies.