WordPress.org

Ready to get started?Download WordPress

Forums

WPBook
[resolved] Blog Post not Posting to Facebook Profile (20 posts)

  1. mcmonty
    Member
    Posted 2 years ago #

    Ok. I just published a post..but nothing posted on my profile page on Facebook. Suggestions?

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

  2. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    First, are you using WPBook or WPBook Lite?

    This is the forum for WPBook - there's a corresponding one for WPBook Lite at: http://wordpress.org/tags/wpbook-lite?forum_id=10

    Second: do you have debugging enabled?

    Is there a debug.txt or debug_pub.txt in your wpbook (or wpbook-lite) folder?

    If WPBook-Lite: what is shown on your WPBook Lite settings page in Facebook in terms of publishing destinations and access tokens?

    If WPBook: What is shown in your "check permissions" page inside WPBook Settings?

  3. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    Finally, are you only trying to publish to your individual profile page, or to a fan page / group?

    If you look at your Facebook timeline, and switch to "activity log" do you see your post there?

  4. mcmonty
    Member
    Posted 2 years ago #

    - Sorry, I followed the support link at the bottom of the WPBookLite settings page which took me to the main WPBook plugin page.
    - Yes. Here it is:

    2012-02-21 21:18:21 : publish_to_facebook running, target_admin is *********
    2012-02-21 21:18:21 : Post ID is 639
    2012-02-21 21:18:21 : My permalink is http://loveinpursuit.me/blog/full-steam-ahead
    2012-02-21 21:18:21 : Function does not exist, or no thumb
    2012-02-21 21:18:21 : Post thumbail is
    2012-02-21 21:18:21 : Post share link is
    2012-02-21 21:18:21 : Publishing to personal wall, admin is *********
    2012-02-21 21:18:21 : Publishing as excerpt,  is
    2012-02-21 21:18:21 : Past stream_publish, fb_response is

    - Publish new post to wall.
    - Publish as posts.
    - Individual profile page.
    - I do not have timeline enabled in Facebook.

  5. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    Ah, thanks - I'll update the support link at the bottom of the page to point to WPBook Lite rather than WPBook.

    Did you edit the "fb_response is" line?

    Something quite funky is going on there - there should be a bunch more right after fb_response - basically telling us what the FB API responded to use with when we called it.

    I may need to make yet another debug version with more info in it - if your debug file just ends like that it probably means we got no good response from Facebook.

  6. mcmonty
    Member
    Posted 2 years ago #

    I only removed the ********* section.

  7. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    I'm working on a new debug version - be done in a day or two - which will include a specific try/catch around each specific call to the API - so we can see what kind of error it is throwing (or not throwing as the case may be).

  8. mcmonty
    Member
    Posted 2 years ago #

    Thanks. I appreciate your commitment to resolving this issue!

  9. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    New development version posted now - please install and try, with "Show Errors publishing to Facebook stream" checked in your WPBook Lite settings.

    I cleaned up all the calls to the Facebook publish API so that they have a specific try/catch block around them, which should throw a useful error if they are getting no data.

    I'll warn you that sometimes Facebook error messages are less helpful - but usually it gives me enough clue to go on.

  10. mcmonty
    Member
    Posted 2 years ago #

    The only one I see is 1.2.5 which says it was added 6 days ago. Is this the one you are referring to?

  11. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    Not 1.2.5.

    If you click on "other versions" over to the right on the plugin page, or go to wordpress.org/extend/plugins/wpbook-lite/download/

    (just add /download/ to the end of the plugin page)

    You'll see the full list of versions, and down at the bottom of that list is the "development" version which is basically live against the source control repository.

  12. mcmonty
    Member
    Posted 2 years ago #

    Sorry for the delay in responding.

    2012-02-28 21:31:03 : publish_to_facebook running, target_admin is ********
    2012-02-28 21:31:03 : Post ID is 692
    2012-02-28 21:31:03 : My permalink is http://loveinpursuit.me/blog/you-wont-relent
    2012-02-28 21:31:03 : Function does not exist, or no thumb
    2012-02-28 21:31:03 : Post thumbail is
    2012-02-28 21:31:03 : Post share link is
    2012-02-28 21:31:03 : Publishing to personal wall, admin is ********
    2012-02-28 21:31:03 : Publishing as post, my_image is
    2012-02-28 21:31:04 : Just published to api, fb_response is
    2012-02-28 21:31:04 : Past stream_publish, fb_response is

    Appreciate you exploring this issue.

  13. mcmonty
    Member
    Posted 2 years ago #

    It also said

    Caught exception publishing to user profile as post: Error validating application.Error code: 0

    while publishing the post.

  14. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    @mcmonty - this was using the new development version of wpbook-lite, yes?

    The "Publishing as post" line would seem to be from an older version

    And you have "show errors posting to Facebook" checked on the WordPress side, in WPBook settings?

    It looks like, from what you've posted above from the debug, like FB is just not responding to the posts - not with an error but also not with success - not sure how to deal with that.

    Have you re-created your access token since updating to 1.2.5 or later (dev version)?

    Is it possible some PHP error is being thrown when publishing?

  15. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    Ah, the plot thickens.

    Where it said "Error validating application" at least that is a clue - that is why it is not allowing the post through to Facebook, because it doesn't see the access_token you have as valid, or for some other reason can't validate the application.

    Have you re-generated your access token recently? (Since moving to 1.2.5 at least)

    Can you check your access token (it should be visible on the WPBook Lite settings page) here:

    http://developers.facebook.com/tools/debug

  16. mcmonty
    Member
    Posted 2 years ago #

    I've generated a new one. Then pasted it in the debug field you provided. Facebook then says 'error.' Obviously, this is an issue regarding Facebook..and not your plugin. However, I would appreciate any advice you could provide as to my next step.

    Thank you!

  17. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    @mcmonty - did you see the other thread in this forum about Facebook Application settings?

    http://wordpress.org/support/topic/wpbook-235-facebook-application-settings

  18. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    Since you are actually using WPBook Lite, you should see the same info in that forum: http://wordpress.org/support/topic/plugin-wpbook-lite-facebook-application-settings

  19. mcmonty
    Member
    Posted 2 years ago #

    That did it! Thank you!!

  20. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    Glad to hear it. Hate it when FB changes things - seems like I need to make a new app every week or two just to see how the admin changes!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags