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
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
Same error for me I’m afraid as the commenter above. Looking forward to any solutions!
How could I add Facebook comments to the front page of my WordPress blog? What code would I need to add to the template?
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!
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
Yea it imports the comments from facebook notes to wordpress if the original source was a wordpress post imported to your profile via RSS.
It doesn’t work with wordbook, only via the official facebook importing method here: http://www.facebook.com/editnotes.php?import
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…
I just added an option to not import comments for closed posts.
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.
I think I have found a better solution.
I use the Share Facebook button to publish my post on my profile.
So in the WordPress admin plugins setting of Facebook comment, in Notes URL, do you think it will work if I enter the url of posted article :
http://www.facebook.com/profile.php?id=my_ID_number&ref=profile#/posted.php?id=my_ID_number
This plugin will not work with any other import solution other than the official one: http://www.facebook.com/editnotes.php?import
The Share Facebook button is official, it’s a new feature of Facebook and it give to your post the best visibility.
http://www.facebook.com/share_options.php
You should have a look james…
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
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
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?
I haven’t upgraded yet. I’ll have a go and see what happens.
Can I assume that I’d also need a cross-posting tool in order to post my blog entries to Faebook?
Use the official RSS import solution:
http://www.facebook.com/editnotes.php?import
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.”
I haven’t tried yet. Will do soon.
Hey James,
Great plugin idea, I can’t seem to get it to work. Question: Is it required that you use feedburner?
Cheers,
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?
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).
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
do you have any tip so we could try to fix this houselves, and not having to bether you? :)
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
I’m not good at this and since I installed this could never find the link on facebook. The RSS feed I found doesn’t contain the ” “viewer” . I can’t even find the rss on comments.
Here is my RSS feed- http://www.facebook.com/feeds/share_friends_posts.php?id=1413112816&key=b17fd9b758&format=rss20
This is as close as I’ve come. The notification.php part is working but not the comments.
Just upgraded to WP 7.1
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.
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
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.
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.
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.
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.
I believe I have the plugin fixed now and working.
anyone has a fix yet? don’t seem to work..
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!
@ben: try hooking up james on [email protected]
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.
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.
There’s a new version with fixes from:
http://heroinc.org/2009/03/01/034-facebook-comments/
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
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.
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.
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.
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
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.
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
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