WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Comments for WordPress
strange and broken post/comment/permalink URLS? (9 posts)

  1. AaronPowell
    Member
    Posted 3 years ago #

    I had coded the Facebook comments into my site by hand, but decided to try this plugin in order to get comment notifications (this happened with both the last 2.0 version of the plugin and continues to happen with the new 3.0.X version). The trouble is, upon installing, all my comments are broken.

    The problem seems to have something to do with the URL of the page Facebook now think's it's commenting on. So if I go to this blog post, for instance:

    http://www.aaronrosspowell.com/blog/the-politics-of-taste/

    And scroll down to the Facebook comments, I don't see the two comments left there earlier, pre-plugin. Furthermore, if I hit the settings button on the Facebook comments, instead of seeing the post's URL in the "Settings inherited from" at the bottom, I instead get this:

    http://www.facebook.com/plugins/comments_v1.php?app_id=REMOVED&xid=REMOVED&url=http%3A%2F%2Fwww.aaronrosspowell.com%2Fblog%2Fthe-politics-of-taste%2F

    Test comments show up fine, but they're broken on Facebook's end. If I share the test comments to my wall, the links back to both my site and my blog post don't work at all.

    Did I setup something wrong? Thanks.

    http://wordpress.org/extend/plugins/facebook-comments-for-wordpress/

  2. we8u
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Aaron. When you coded it by hand, did you have something like this?

    <fb:comments href="<?php the_permalink(); ?>"></fb:comments>

    If so, you can try enabling both v1 and v2 (under the plugin's settings page) and see if the old comments show up.

    I'm guessing before you had something like the above, or just left it blank so it would use the page as an xid? If so, then your guess about the URL is correct, and enabling v1 and v2 both should show the old comments.

    Let me know how it works out.

    shaun

  3. AaronPowell
    Member
    Posted 3 years ago #

    Shaun-

    That did fix it. At least, the old v2 comments are showing up. Is there a way to not display the v1 comments box, too?

    And, while the comments are working, notifications of new comments are not. I'm not recieiving emails when new comments show up, nor am I getting notified in Facebook (I turned on that open and set my User ID), nor are my test comments showing up in the "Recent Facebook Comments" box on my WP dashboard.

  4. we8u
    Member
    Plugin Author

    Posted 3 years ago #

    • Yeah, in the settings, check "Enable the just-released version of facebook's comment plugin."

      And make sure the second option, "Display both v1 and v2 comments", is unchecked.

    • One reason notifications may not be working is because they are only sent when another facebook user responds. It should be sending them, I checked your page and the admin meta is pointing to your profile and your app id is also there. Those two things should be all it needs.
    • The comments won't show up in the dashboard until facebook gives us a method to retrieve comments from their new comment system, which should be soon. See the first post in this thread for details.

      One workaround for this is to disable the new v2 comments, then comment on a post using v1, then renable v2. This will cause facebook to store the new comments in v1's database. Although, it still won't store threaded replies. But unnested comments will show up on the dashboard and in the widget.

  5. AaronPowell
    Member
    Posted 3 years ago #

    If I turn off "Display both," then that just puts me back in the situation I described in my first post. I.e., the url it thinks the comments are for is back to that strange one I pasted above, and the comments disappear.

    (Oh, and thanks for all your help on this. I really do appreciate it.)

  6. we8u
    Member
    Plugin Author

    Posted 3 years ago #

    I see, it needs the href='$postUrl' to load those comments.

    To not display v1 comments, in facebook-comments-display.php beginning on line 189 there is this:

    echo "\t<fb:comments xid='$xid' ",
    				"numposts='{$options['numPosts']}' ",
    				"width='{$options['width']}' ",
    				"simple='{$options['noBox']}' ",
    				"publish_feed='$publishToWall' ",
    				"reverse='{$options['reverseOrder']}' ",
    				"css='$customStylesheet' ",
    				"title='$postTitle' ",
    				"url='$postUrl' ",
    				"notify='true'></fb:comments>";

    Change it to this:

    /*
    				echo "\t<fb:comments xid='$xid' ",
    				"numposts='{$options['numPosts']}' ",
    				"width='{$options['width']}' ",
    				"simple='{$options['noBox']}' ",
    				"publish_feed='$publishToWall' ",
    				"reverse='{$options['reverseOrder']}' ",
    				"css='$customStylesheet' ",
    				"title='$postTitle' ",
    				"url='$postUrl' ",
    				"notify='true'></fb:comments>";
    */

    Hopefully this works for you. If not, let me know.

  7. AaronPowell
    Member
    Posted 3 years ago #

    That fixed it. Thank you so much.

    Is the issue with the href='$posturl' thing a bug? Or is commenting out this code just something I'll have to remember to do whenever the plugin updates?

  8. we8u
    Member
    Plugin Author

    Posted 3 years ago #

    Awesome!

    Actually, it was a "just in case" option I added, since it didn't change anything for me. But I'll make sure to add a v2 only option in future releases, so you shouldn't have to change anything. On the options page, I'll put something like, "v2 Only (uses both href and xid, doesn't load any comments from v1)"

    Cheers!

  9. ivantus
    Member
    Posted 3 years ago #

    I have a similar problem I think. Sometimes comments are loading ok and sometimes they don't. For example when I load a post the first time it shows no comments at all and after the 3rd or 4th refresh it loads all comments. I'm using v2 and v1 (new) option. Example url is http://www.exyudownload.com/2946-darko-radovanovic-spava-mala-u-dve-postelje-2011
    Any help?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic