Feed Facebook, Leave Facebook

Facebook is shutting down its RSS import feature on 22 November 2011. This plugin will still work, but you will no longer be able to use Facebook as your import service. For alternative import services, try: Twitter Feed, RSS Graffiti (I have no experience with either of these.)

Feed Facebook, Leave Facebook is a plugin for WordPress to generate a separate partial feed for use on Facebook. Use it to direct Facebook visitors to your blog while leaving your main full-text feed intact.

If you’re a (reluctant) Facebook user and you’re unhappy with the way it handles your feed, use this plugin to generate a special excerpts only version for Facebook. It will also add a link to your blog post beneath the excerpt in case visitors miss the ‘View original post’ link Facebook provides.

Download — Latest Version

Installation (for WordPress 2.8+)

The easiest way to install the plugin is to install with plugin installer (enter your WordPress address).

If you want to do it manually:

  1. Upload the feed-facebook-leave-facebook directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Once activated, access your feed with the querystring feedfacebook appended to the end. This is usually
http://[your blog address]?feed=rss2&feedfacebook — if you use pretty permalinks, it could also look like this: http://[your blog address]/feed/?feedfacebook

You can register the new feed URL with Facebook on its Import a Blog page.


To customise the message, add it to the querystring:

?feedfacebook=Read the rest at my site

If you want to explain to your readers why you’re asking them to leave Facebook to read your post, you can add that with the following:

?feedfacebook&why=URL of explanation

This will appear as a link with the text ‘(why?)’. To change the wording:

?feedfacebook&why=URL of explanation&whytext=Facebook is evil!


Examples of Feed Output


If you find this piece of code useful, please consider donating. I’m a student working on these projects in my spare time. This site carries no advertising and I release most of the code I work on under a free software license. I don’t receive any payment for this work so I have to rely on donations if I want to put off becoming a wage slave. Your contribution (whatever the amount) would be greatly appreciated.

Paid Support

If you run a commercial site and you need help with feeds. Feel free to get in touch: keyvan (at) keyvan.net


  1. Keyvan says:

    James: Thanks for the suggestion. Will think about it.

    Shannon: I tried your site and it seems to be working: http://www.showmethemom.com/feed/?feedfacebook

  2. Keyvan, this is such a useful plugin. I love that I can retain all formatting and links like I intended instead of relying on FB’s stripped “notes”.

    One question:

    Is there any way to have the plugin feed link directly to the blog homepage, instead of to the specific blog post?

  3. Keyvan says:

    Chris: Thanks! As for your question, I’m sure there is a way to do that but I don’t really have time to look into it at the moment. I’m guessing adding a filter to the_permalink_rss and overriding the value with your blog URL would work – I haven’t tested it though. Also, I’m not sure how Facebook would treat the links. It might ignore new entries if the URLs match previous entries.

  4. Justin Luey says:

    My problem with this and every plugin or service I’ve tried is that the links on Facebook don’t have the option for users to share or add to their profile. Can this be added to your plugin, or is Facebook blocking that feature for things automatically posted?

  5. Keyvan says:

    Justin, I’m not quite sure what you mean – I think there is a ‘share’ option when Facebook displays feed items. But whether it appears or not, it’s determined by Facebook and not the plugin.

  6. […] but I didn’t want the entire post as the ‘note’. I found a great plugin called Feed Facebook, Leave Facebook that leaves a partial feed with a link to ‘leave Facebook’ to your site. This is […]

  7. Digigirl says:

    Hi, I installed this on a friend’s website (www.chivalrytoday.com) and it seemed to be working fine, but now suddenly isn’t. It hasn’t updated the last several articles he has posted to Facebook. The Facebook Import a Blog setting still shows that it’s supposed to be importing.

    The facebook page is http://facebook.com/ChivalryToday. You can see several posts were made, but he’s done several since that last one that’s shown there (Podcast 35) that aren’t showing up.

    Any idea what might be causing this?

  8. Keyvan says:

    Digigirl: I would check the feed URL – if it shows the posts correctly in your browser then it’s a Facebook problem. If it’s not showing the recent posts in the feed when you load it directly, then maybe it’s a problem with the plugin that I can look into.

  9. Digigirl says:

    Hey, thanks! It was neither Facebook NOR the plugin but you telling me to check the URL helped me figure it out. All fixed now. Thanks again!

  10. have been testing your plugin but seem to be having issue on the return link, after it post to facebook in a shorten url it links back to the site but in the url it adds a ) after the url and thest inturn cause a 404 error message. what id the solution on this

  11. Keyvan says:

    Bobby: can you provide a URL to your feed?

  12. MWDESIGN says:

    I am a little confused about all this:
    so far I created a facebook page for an organization.

    I have a plug in that sends post updates to twitter.
    before I installed your (great) plug in I tried to get twitter updates
    to go to the facebook page. however in order for facebook to install this application it had to be claimed by a person, which it was.
    But nothing ever got updated on the facebook page.

    when I installed this plug I followed the link to add the feed to facebook and it took me to the organization facebook page but updated the persons profile who owns it instead.
    so the facebook page for the organization stays blank:

    Do you understand what is going on here and what I should do next?

  13. Keyvan says:

    MWDESIGN: I have no experience of Facebook’s different account types. The plugin here simply produces an RSS feed – it doesn’t contact Facebook in any way. So if there’s a way for Facebook to pull in feeds for different account types, you should be able to use it. Perhaps the link I’ve provided for registering the feed is only for individual accounts.

  14. John says:

    Hello, Your plugin is exactly what I’ve been looking for. I do have a problem, but it may be a result of my misunderstanding.

    The plugin installed fine, and I can see my blog posts on my FB notes page. But nobody else can see them. Anyone looking at my FB notes page gets the error: John hasn’t written any notes… yet. I’ve tried this logging on from several accounts and they all produce the same result.

    I thought that maybe this might have to do with FB’s servers updating, but it has been over 8 hours since I installed the plugin. I also checked my security settings, and even when Notes is set so that “everybody” can read it the problem persists. Also, I tried “sharing” the blog entries by publishing them to my wall, with no success.

    Am I missing something?

    Many thanks!


  15. Keyvan says:

    John: I have no idea why they appear for you and not for others. It does sound like an issue with Facebook. I suggest you try registering a regular feed (not one produced by this plugin) or creating notes yourself through Facebook and see if friends can see those.

  16. John Rothra says:

    Feed is great but I’m confused about two things. First, the feed importer on Facebook will post the feeds without this plugin. There is a link (albeit hidden with a couple others at the bottom) to the feed’s origin site. Also, you don’t have as much customization with it. I tested their feed importer without the plugin and it worked fine. So what exactly does the plugin add (this may be related to my second question).

    Second, when I tried the URL
    http://www.jrothraministries.com/feed/?feedfacebook=Read the full post at my site
    for the feed (to have the easily found link taking people to my site), FB would only post the word “Read.” It ignored everything after the space.

  17. John Rothra says:

    1. Meant the plugin is great (gives customization abilities)

    2. Just noticed that the URL link that I said I use also stops at the space just like FB does.

  18. Keyvan says:

    John: Facebook does already give you the option of importing feeds. The problem is if your feed contains the full contents of each post, Facebook will import it all – so users have little reason to leave Facebook to read your content. This plugin simply gives you another option: give Facebook a feed containing only excerpts of your posts with a link to the full content on your own site. But if you’re happy giving Facebook everything, then there’s no need for the plugin – as you point out you can register your main feed URL.

    Regarding the second question, if you’re using spaces you should encode them. The simplest way is to replace the spaces with the plus symbol: Read+the+full+post+at+my+site.

    Hope that’s some help.

  19. John Rothra says:

    I tried this URL and it gave me an error:

    The FB error:

    Import Failed
    The feed URL you provided doesn’t contain any data.

    But this URL works fine:

    It doesn’t seem to like anything past the first word.

  20. John Rothra says:

    BTW… thank you for giving the explanation on the benefit of the plugin 🙂 Answered a question I had. Since it uses the except, that’s awesome!

  21. Keyvan says:

    John, I don’t know why it’s giving you the error. It’s encoded properly now and if you access the URL directly yourself you’ll see it works fine and shows the correct message as the link. If Facebook can’t access it that’s a problem at their end.

  22. This sounds like the perfect plugin to remedy my beef with Facebook. Trouble is, it’s not compatible with the FD FeedBurner Plugin. Maybe you can apply a similar trick to what you did to make it compatible with the other FeedBurner plugin I saw mentioned in the changelog?

  23. Keyvan says:

    Voyagerfan5761: Thanks. If I get more requests I might consider it. Can I ask why you don’t use the Feedsmith plugin?

  24. I attempted to install the FeedSmith plugin before commenting here. WordPress said the plugin had an invalid header. But I just tried again and it’s installed, so I don’t know what went wrong before.

    I do notice that there are no configuration options for FeedSmith other than the post and comment feed URLs. FD FeedBurner has options for not redirecting category/tag and search result feeds. But I can probably live with the lack of support for that. Maybe I’ll send a feature request to FeedBurner. Or if I have the time, hack it in myself.

  25. Keyvan says:

    Voyagerfan5761: Thanks for the update. Glad it’s working now and it’s good to know the difference between the plugins too.

  26. Finally stumbled upon something I’ve wanted for donkey’s years, thanks to a kind tip off from one of your commenters. This does the job nicely, will definitely be back to see what other gems you create. Many thanks.

  27. Keyvan says:

    Thanks Andrew. 🙂

  28. Viscouse says:

    This plugin rocks so hard, it hurts. Thank you.

    I have a quick question. The feed is being produced correctly, and FB reads it fine. My question is more of semantics regarding how FB processes (or I’m just not doing something right). The feed comes in as a Note, which gets posted to the Wall. So on the Wall, which is structured: Note link, blog excerpt, comment/like/share. So a reader has to click on the Note link, and THEN the “Leave Facebook to read the rest on my blog” link.

    Is this right? Is there a way to make a link directly to the post without having to go to the Note first?

  29. Viscouse says:

    Sorry…addendum. When the Note gets published to the Wall, it seems to strip any hyperlinks.

    Why would FB do that?

  30. Keyvan says:

    Viscouse: You’re right – it would be much more useful if Facebook included links in the notes when displaying them on the wall, or allowed the title link to lead to the actual article rather than another Facebook page. They do it for posted links, but it appears that when it comes tofeeds they’d rather keep users and external content inside Facebook.

  31. Jeff says:

    I was wondering if there was a way to post this directly to a group rather then to my main FB feed?

    I have a group that I am running on FB and would love to just post my blog posts there. Please let me know if this is possible.



  32. Keyvan says:

    Jeff: This plugin only produces a feed – whether you can include the feed in a Facebook group, I don’t know.

  33. Johan-Moric says:

    Fore those having problems:

    Try tis: your_url/?feed=rss2&feedfacebook

  34. Alex says:

    Does FB have a problem with some domain names? My website is http://manch.ME and it doesn’t seem to want to allow me to add the feed, it returns with an error:

    “Import Failed.
    We couldn’t find a feed using the URL you provided.”

    I tried using both kind of links, the http://manch.me?feed=rss2&feedfacebook AND http://manch.me/feed/?feedfacebook

    Both eventually give the same result. Do you think it’s the .ME domain issue or something else?

  35. Keyvan says:

    Alex: The second URL doesn’t work which seems to suggest you don’t have pretty permalinks enabled. The first should work – whether you have permalinks enabled or not – but appears to be redirecting to feedburner. This plugin only supports the feedburner feedsmith plugin – maybe you’re using something else?

  36. Kevin says:

    Well, I have used this for awhile and have never really been satisfied. My feed looks fine….until you click to leave facebook. All you get is my website within the Facebook frame….FB ads are still on the right and all the facebook trapping are on the top and the bottom of the screen.

    I wrote here before and could not get it fixed….what is wrong?

  37. Sharon says:

    I am trying to use this plug in to have my blog posts automatically show up on my facebook fan page. Here is the url that is showing up on FB import blog line http://www.reallifedeals.com/?feed=rss2&feedfacebook

    But it is not auto posting from the blog. Any suggestion? Thanks a ton!

  38. Keyvan says:

    Sharon: this is a Facebook problem affecting all feed imports. Lots of people complaining about it here: http://www.facebook.com/topic.php?uid=2347471856&topic=11219
    Some suggest manual updates – which really defeats the purpose of having blog posts appear automatically in Facebook. Others recommend using a third-party Feed app within Facebook. I haven’t tried the last option myself but it might be worth a try.

  39. HomeMaid says:

    I had a few problems initially, but changed the URL;


    I added =rss2& as advised on another post, as well as the + signs between the text I wanted to appear with each listing – worked a treat, imported everything on the blog.

    Thanks for a great plugin and all the posts which solved my problem in about 2 mins!

  40. Radu Luca says:

    Hi. I’ve been using you’re plugin for a while now and it worked great, that is until a few days ago. Now it doesn’t display de text expert, only the title and the read more link. Any idea why this happens?
    My blog. I use the /feed/?feedfacebook but i also tried the alternative ?feed=rss2&feedfacebook. Same result.

  41. Keyvan says:

    Rada, which version of WordPress are you using, and can you point me to a feed URL?

  42. Lesa says:

    When I try to import my feed at Facebook, I receive an error saying that a feed couldn’t be located at the URL I provided. This is the URL:


    When I load the URL, I can see the XML feed. Could this be because I’m using the latest version of WordPress?

    Thanks for any suggestions!

  43. Keyvan says:

    Lesa: I would say it’s a Facebook problem. If you can view your feed by accessing the URL yourself, Facebook should be able to see the same thing. I checked your feed in a feed validator and it validates fine so there’s nothing wrong with the feed itself.

  44. HomeMaid says:

    I notice a few people complaining that there new blog entries don’t come through “instantly”. Its been my observation that FB can be VERY slow pulling these things through, taking upto 7 days!

    They do eventually come through onto my facebook profile, but this isn’t an instant thing and the problem appears to be with facebook.

  45. As HomeMaid said, yes, Facebook can be very slow in pulling feed items through. I noticed that before I discovered this plugin, so I’m convinced that Facebook just doesn’t place much importance on the speed with which users’ blog posts are pulled in.

  46. […] Post to twitter and Facebook. I’ll say it right up, I’m not a fan of either, but many people are and they offer a great platform for say “Hi, I’m here, check me out”. So every time I post something new a link to it goes up on Facebook and Twitter. I’ve used some WordPress plugins to automate the task for me, Twitter Tools and Feed Facebook, Leave Facebook. […]

  47. Isy Bee says:

    Seems like FB doesn’t like users leaving FB.

    Last night I installed your WP plugin and it was importing the feeds with the ?feedfacebook appended on the query string but when I went to save the settings it came back with an error “Sorry, an error has occurred.We’re working on getting this fixed as soon as we can.”
    Today I have tried again and this time it’s not even importing the feeds when setting up, yet it works fine if I leave out the ?feedfacebook

  48. Keyvan says:

    Isy Bee: Can you load the feed URL directly in your browser with the ?feedfacebook part appended? If that works then it’s most likely a Facebook problem.

    FB’s feed handling appears to have deteriorated a lot – I don’t think it’s a big priority for them. You might have more luck with RSS Graffiti. It’s a Facebook application which appears to handle feeds better than Facebook’s builtin support: http://www.rssgraffiti.com

3 Trackbacks

  1. […] but I didn’t want the entire post as the ‘note’. I found a great plugin called Feed Facebook, Leave Facebook that leaves a partial feed with a link to ‘leave Facebook’ to your site. This is […]

  2. […] ein Link zur Plugin-Homepage: http://keyvan.net/code/feed-facebook-leave-facebook/ … other posts by […]

  3. By Blogging for Writers | Belinda Crawford on 16 September 2010 at 1:33 am

    […] Post to twitter and Facebook. I’ll say it right up, I’m not a fan of either, but many people are and they offer a great platform for say “Hi, I’m here, check me out”. So every time I post something new a link to it goes up on Facebook and Twitter. I’ve used some WordPress plugins to automate the task for me, Twitter Tools and Feed Facebook, Leave Facebook. […]