WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WPBook] problems with posting comments from facebook (23 posts)

  1. izabael
    Member
    Posted 4 years ago #

    http://www.izabael.com/blog/?fb_sig_in_iframe&wpbook=comment-handler

    When facebook calls the above url, the site just stops responding on a completely blank page. Everything else seems to work perfectly, such as comments from wordbook going to facebook properly.

    I've disabled most other plugins and haven't made any custom changes.

    Any ideas?

    Thanks,
    IZabael

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

  2. Brooke Dukes
    Member
    Posted 4 years ago #

    What version are you using, I know there was a comment problem with versions prior to 1.4.2. If you're not using the 1.4.2 release I would suggest that.

    What is the app url? You shouldn't be seeing a url like that from withing facebook you should be seeing: http://apps.facebook.com/your-app/post-title

    You mentioned wordbook above that is an entirely different plugin are you sure you're using WPBook and not WordBook.

    Let me know more details and I'll try to help.

  3. Corey13
    Member
    Posted 4 years ago #

    I'm having the exact same problem. I've setup a test app on Facebook (apps.facebook.com/cdtesting) and a test WordPress install (corey.ybbot.com/test). I’m using the latest versions for both WordPress and WPbook.

  4. Brooke Dukes
    Member
    Posted 4 years ago #

    @corey13 What is your canvas url? The "link to external post list" is also broken making me thing something is wrong in the way this is setup.

  5. Corey13
    Member
    Posted 4 years ago #

    The canvas url in FaceBook is http://apps.facebook.com/cdtesting/. The canvas url in WPBook is cdtesting.

  6. SuLange
    Member
    Posted 4 years ago #

    I have exactly the same problem like izabael.

    this is the url I get when I try to comment within facebook
    http://sulange.net/blog/?fb_sig_in_iframe&wpbook=comment-handler

    my canvas url is http://apps.facebook.com/sulanet/

    the fb application canvas url is: sulanet

    what did I wrong?

    Su

  7. SuLange
    Member
    Posted 4 years ago #

    I forgot to mention that I’m using the latest versions for both WordPress and WPbook too.

  8. Brooke Dukes
    Member
    Posted 4 years ago #


  9. Brooke Dukes
    Member
    Posted 4 years ago #

    I'm looking into the comment problem but for thouse of you who can't get the view post on extrnal site to work you'll need to set permalinks in Dashboard > Settings > Permalinks.

  10. Corey13
    Member
    Posted 4 years ago #

    I had the permalinks set to the default. I changed them to Month and name and still have the same problem with comments. The link to view post on external link has always worked.

  11. johneckman
    Member
    Posted 4 years ago #

    izabael - what's the homepage of your wordpress installation?

    Is wordpress installed in the /blog/ subdirectory or do you have a custom homepage?

    WPBook should be constructing the comment handler url based on your Settings->General->Blog Address.

    WPBook registers a handler which should accept the comment and post it.

    Those of you who are experiencing a problem - do the comments someone writes get submitted? Maybe it is just the redirect after the posting which fails?

  12. Brooke Dukes
    Member
    Posted 4 years ago #

    John,
    I get the issue on my test blog. The comment won't post or go into the comment que just a white page with the url "http://example.net/blog/?fb_sig_in_iframe&wpbook=comment-handler"

    I don't have this issue on my production blog which is on the same server which I find strange.

  13. johneckman
    Member
    Posted 4 years ago #

    is your test blog installed in /blog/?

    What I'm trying to determine first is if the correct url is being called - is http://example.net/blog/ the home page of your test blog?

  14. af3
    Member
    Posted 4 years ago #

    Seems like the upgrade to wp2.9.2 breaks wpbook to display the comment form in facebook; no issue when using wp2.9.1 earlier i.e. the comment_template() is returning empty when the rest of the post contents are shown -- see http://donateyourjunk.com and http://http://apps.facebook.com/donateyourjunks/

  15. Corey13
    Member
    Posted 4 years ago #

    The issue with ?fb_sig_in_iframe&wpbook=comment-handler" I'm having is with WordPress 2.9.1. I'm not sure what would happen with 2.9.2. I may just pull the trigger on it to see what happens since it's justa test blog anyway.

    Some other notes: I don't have wordpress installed in the root directory. It is in /test/ and is configured without a custom home page.

    BandonRandon: Is your production site in the root directory? I'm wondering if WPBook doesn't like subdirectories.

  16. Brooke Dukes
    Member
    Posted 4 years ago #

    My test blog is in a wordpress folder of a subdomain. While my production site is just inside of subdomain.

    for example my test blog is dev.example.com/wordpress and my production is just dev.example.com

    John, what does the custom "?fb_sig_in_iframe&wpbook=comment-handler" do? Why did you go away from having the comments posted with the custom script?

  17. chp2009
    Member
    Posted 4 years ago #

    Getting some errors
    I'm also using this plugin
    http://wordpress.org/extend/plugins/the-events-calendar/

    getting these errors in the application on facebook

    Warning: include(mysite.com/wp-content/plugins/wpbook/theme/header.php) [function.include]: failed to open stream: No such file or directory in mysite.com/wp-content/plugins/the-events-calendar/views/single.php on line 3

    Warning: include() [function.include]: Failed opening 'mysite.com/wp-content/plugins/wpbook/theme/header.php' for inclusion (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in mysite.com/wp-content/plugins/the-events-calendar/views/single.php on line 3

  18. Brooke Dukes
    Member
    Posted 4 years ago #

    chp2009,

    I belive your problems are unrealted to the comment issue. In the future please start a new thread.

    My guess is that the event plugin is also trying to overwrite the theme i would suggest that if you can disable the plugin for the facebook page do so.

    You can surround the plugin hook in this code if you'd like

    if (isset($_SERVER["HTTP_USER_AGENT"])) {
    		$is_facebook = "false";
    	}
    
    	if (isset($_GET['fb_sig_in_iframe']) || isset($_GET['fb_force_mode'])) {  // this just checks a simple thing
    		$is_facebook= "true";
    	}
    
    if ($is_facebook == "false") { PLUGIN HOOK CODE }

    either that or move files so that WPBook is able to find the event calender files as part of its theme.

  19. johneckman
    Member
    Posted 4 years ago #

    BandonRandon - thanks (as always) for your help. A few troubleshooting issues:

    1. With your test blog (which is not working), which is in a subfolder, what is the canvas callback url? (The setting in the FB app which tells it what to call)

    2. Also, in that same blog, what do you have set in the WordPress side for Settings->General->Blog address and Settings->General->WordPress address?

    3. Finally, are any other settings different between the two (requiring email address from comment authors for example? allowing anonymous comments?)

    The point of the callback handler is to make it possible to have WordPress installed in a subdirectory, to move or rename the wp-content directory - basically to eliminate all assumptions about relative paths between the plugin directory and the wp-includes.

    Doing it the old way required "guessing" about the path from where the comment handling form is to where the core wordpress classes are and calling them as an include - which is a bad practice.

  20. Brooke Dukes
    Member
    Posted 4 years ago #

    Hey John,

    Sorry i didn't get back to you in time. It looks like the 1.5.1 release fixed this problem for me. Hopefully others will report the issue fixed as well.

    Just wondering, where was the problem and what did you do to fix it?

  21. admin-1
    Member
    Posted 4 years ago #

    I have a repeated error while pasting to facebook.

    Fatal error: Uncaught exception 'FacebookRestClientException' with message 'Session key invalid or no longer valid' in /home/sdgonlin/public_html/yellowsub/wp-content/plugins/wpbook/client/facebookapi_php5_restlib.php:3065 Stack trace: #0 /home/sdgonlin/public_html/yellowsub/wp-content/plugins/wpbook/client/facebookapi_php5_restlib.php(1025): FacebookRestClient->call_method('facebook.fql.qu...', Array) #1 /home/sdgonlin/public_html/yellowsub/wp-content/plugins/wpbook/wpbook.php(907): FacebookRestClient->fql_query('SELECT name, pa...') #2 /home/sdgonlin/public_html/yellowsub/wp-includes/plugin.php(339): wp_update_profile_boxes(Object(stdClass)) #3 /home/sdgonlin/public_html/yellowsub/wp-includes/post.php(2122): do_action() #4 /home/sdgonlin/public_html/yellowsub/wp-includes/post.php(1806): wp_transition_post_status('wp_update_profi...', Array) #5 /home/sdgonlin/public_html/yellowsub/wp-includes/post.php(1866): wp_insert_post() #6 /home/sdgonlin/public_html/yellowsub/wp-admin/includes/post.php(192): wp_update_post() #7 /hom in /home/sdgonlin/public_html/yellowsub/wp-content/plugins/wpbook/client/facebookapi_php5_restlib.php on line 3065

    I wonder if anyone had it before and what is the fix. Thanks a lot.

  22. johneckman
    Member
    Posted 4 years ago #

    admin-1 - what do you mean while pasting to facebook?

    Do you mean you get this error while publishing a new post?

    Please start a new thread as your issues seem to be different than those in this thread.

  23. johneckman
    Member
    Posted 4 years ago #

    BandonRandon - I just updated the target url for the form submission in theme/comments.php - the form action at line 79.

    It was pointing to the blog installation home url - I just added /index.php? to that call so that it gets routed appropriately by the WordPress query routing.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags