Forums

WPBook Lite
[resolved] Setup - "generate access token" fails (4 posts)

  1. mpm4pub
    Member
    Posted 3 months ago #

    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?

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

  2. mpm4pub
    Member
    Posted 3 months ago #

    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.

  3. johneckman
    Member
    Posted 3 months ago #

    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=http://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.

  4. mpm4pub
    Member
    Posted 3 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic