Facebook Comments

IMPORTANT: Facebook comments isn’t working right now, I’m looking for someone to take over this to make it work. Leave a comment.

Basically a new version can start using the facebook comments API for notes, but will still have to match note ids to wordpress URLs by screen scraping facebook like the original plugin.

Old Info:
For a while I’ve been using Adam Hill’s facebook comment importer, to get comments from facebook back in to my blog. I recently realised it wasn’t working, so I tried Thomas Albright’s edit, no joy there either. Did some debugging and got it working my self. You can download it here: facebooknotes.php.

All new changes have been commented incase they need to be moved back, though I think my version is the only one being actively maintained at the moment.

Change Log:
0.36
Latest fixes for facebook with changes from Benjamin Trice
0.33
Option to not import comments for posts whose comment status is closed.
0.32
Should work for pages and situations where there facebook user specified in wordpress isn’t friends with the commenter on the note.
0.31
Removed debug statement
0.30
Fix for the latest version of facebook!
0.29
Option not to notify (email) of new comments from facebook
0.28
Option to import from every page of notes from facebook, not just the first one.
0.27
Version 2.5.1 introduced that the GUID might not be the permalink (http://trac.wordpress.org/ticket/6492). The plugin now uses a different method for converting the URL to a post ID. Should also fix some earlier problems with the “Original Comment Post Not Found” error.
0.26
Version 0.26 with fix for latest facebook HTML mark up
0.25
Fix added by Aaron Harp to allow thie plugin to work with feedburner


Reader Comments

  1. Pingback: Facebook Comments
  2. Hey, I’m getting a series of

    Error, wordpress URL for post not stored…
    Error, wordpress URL for post not stored…

    Please hit me back and let me know what’s up.

    Thanks,
    Mike

  3. How could I add Facebook comments to the front page of my WordPress blog? What code would I need to add to the template?

  4. Hey, first i couldn’t get this working, but i fixed it myself. I noticed two things that breaks this plugin:

    1. You have to use English as your language at Facebook. At least it didn’t work with Swedish – it just stuck at “Manually importing comments…”
    2. Your plugin checks for the feedburner domain but have no way to tell if you’re using “MyBrand” (Custom domains) with feedburner.
    I use “feed.cinnak.se” for my feeds so i manually changed “feedburner.com” with that in the code where the check is being made.

    And now it works!
    If you can include a textfield in the next release where you can enter your mybrand-domain that would be awesome.
    And is it possible to get it to work with other languages of Facebook?

    Thanks!

  5. I have a dumb question : Which comments this plugins is supposed to import in wordpress ?

    The comments made on post imported from rss feed in your facebook profile ?

    Does it work with wordbook, to import wordbook comments to wordpress comments ?

    thanks

  6. When comments are closed on certain post, what’s happened ?
    Unfortunately on facebook all comments are activated by default even if comments are closed on wordpress post…

  7. Nice work.
    Unfortunately I have try to use it with one of the best RSS Facebook Application (Simplaris Blogcast) by entering the url of my facebook wall (where my feed are displayed with comment option) instead of url of facebook note and it doesn’t work.

  8. I am still receiving a list that looks like this.

    Error, wordpress URL for post not stored…
    Error, wordpress URL for post not stored…
    Error, wordpress URL for post not stored…
    Error, wordpress URL for post not stored…
    Error, wordpress URL for post not stored…
    Error, wordpress URL for post not stored…
    Error, wordpress URL for post not stored…

    Please let me know what the error would be.

    Thanks,
    Michael

  9. I have been trying to get this thing to work. I am on a windows server so I don’t have command line CURL. I think that is why its not working for me.

    I ahve been trying to re-write the curl into the PHP function but I can’t get it too work. :(

    It keeps telling me cookies are required in my debug output. Even though I have the CURLOPT_COOKIEFILE set with a cookie.txt
    Data is written to this cookie.txt when ran

  10. I’ve just upgraded from WP 2.7 to 2.7.1. and all of a sudden, this plugin’s ceased to function. Should I just wait it out until it’s compatible once more?

  11. Is the plugin working for you since the upgrade? I’m not too sure what’s wrong on my end. I can’t even import the comments manually as it just stays at “manually importing comments.”

  12. I am having an issue when it imports my own comments from facebook notes, it is loading them with the advertising and, comment boxes, tagging boxes, etc. from the facebook page. If I delete or edit the comments on WP, they are just reimported on the next update. Any ideas?

  13. I’m also suffering from some issues. Every night, all the FB comments are being imported repeatedly.. and also include a bunch of HTML that would have also been on FB (banner ad, links etc).

  14. Seen your comments guys. I’ll have a look sometime, but please understand we’re scraping facebook html, so its likely to break quite often, and this isn’t my full time job :-P

  15. well how I have to do this, is I have to look at the HTML facebook is producing, and make sure my plugin correctly reads and finds the data using regular expressions. If someone else wants to do that and send me their changes I’d be happy.

    Either that, or if a load of people wanted to donate money I could afford to spend more time on it :-P

  16. Thought I posted results already but don’t see it-

    Again not sure what it is supposed to do because haven’t seen plugin in action. I put that rss feed in my sidebar and it’s getting something.

  17. Shoot me now- I was working on another ap- thought was yours.

    I wonder if yours is a WP issue- how many of these failed plugins are on the new 2.7.1

  18. Looks to be a 2.7.1 issue. It was working fine with me until I updated.

    I did notice one bug prior where if a comment had html within it, the plugin would create a single duplicate entry with no author name.

    I’ll see if I can take a look at possible issues this weekend. Thanks for the great plugin though.

  19. Actually I found that it is working in 2.7.1. My issue was that I was showcasing my Notes in the compact view and it would not pull the comments back. Once I changed it back to Full view, the comments were imported again, but Facebook did update their html and it is now importing almost the entire page.

  20. James, I’ve fixed the issue in the plugin. Please send me an email and I’ll send you the updated plugin code. I also added the ability to provide a default url for all comments instead of the facebook url id for those that don’t want to post the facebook url id’s out there.

  21. One more thing. There is one bug left. The plugin seems to screw up the author name on the last comment of a post. I was wondering if maybe you could take a look at this issue. I have only limited experience with regular expressions.

    Thanks again for the facebook comment plugin in general.

  22. hi there,

    i’m new to this whole world. i”ve been tasked by my job to figure how to make it so that when someone googles(search engine searches) you, that your posts and people’s comments on your posts come up in the search. how do you go about making your facebook, myspace, wordpress, blogger, etc. come up when people search for you? is that the same as blog optimization?

    thanks everyone for any help you can give!

  23. Thanks Davin. I’ll try that.

    However, it seems that Facebook made some html changes again and broke the plugin. I’ll try to reach James after I give the plugin a second shot.

  24. Hi! I installed facebookcomments yesterday with WP 2.7.1 but it’s not pulling FB comments. Could someone please help? Is it related to the previous comment made by Ben and is not working for anyone? Thank for the help.

  25. Mate love your biblegateway plug in, great work!

    Trying to get this workong on my site, but keep comign up with this error :(

    Manually importing comments…

    sh: line 1: curl: command not found

  26. Ahhh, looks like you don’t have curl accessible from you PHP setup. I’m working on changes that will integrate phpcurl but depends on how much time I have.

  27. I’m finding that mine isn’t logging in. The page that the script is getting back has a login box + the standard “you do not have cookies enabled” message.

  28. Hey, I stumbled on your site through some wordpress plugins. We have a lot in common. Would enjoy communicating sometime if you would like to. You can leave a post on my blog if you like instead at http://www.timmalone.net/blog.

    I like your site and look forward to hearing from you.

  29. Hey there,

    I’ve been watching this plugin in for a while and was really excited about the most recent developments. However when I try to import comments I get the following error:

    Manually importing comments…

    Error, wordpress URL for post not stored…
    Error, wordpress URL for post not stored…
    Error, wordpress URL for post not stored…

    Any clues or help is appreciated.

    Thanks,

    Andy

  30. Yeah, getting the same error message.

    “Error, wordpress URL for post not stored…”

    I am on WordPress 2.7.1 and using Facebook Comments 0.36.

  31. Hi. I really like your plugin… well, if I could get it to work.

    When I click manually import, it just says “Manually importing comments…” – but nothing happens. How long is it supposed to take?

    I entered the correct e-mail, password and url to the notes feed, which is the following:
    http://www.facebook.com/notes.php?id=85366427504

    As you can see, there’s a comment for the latest post on facebook, but it doesn’t import to my WP :-)

    – Simon

  32. I have tried for hours to no avail! Just as Simon, nothing happens on import. Is there a Cron I should setup or something?

    PLEASE HELP – this is an amazing app when it is working.

    All Best,
    – Misty

Write a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.