Combining Multiple RSS Feeds for Facebook


I was on a quest to combine multiple RSS feeds into a single ordered aggregated RSS feed. This is because Facebook provides a nice function to import an RSS feed into your notes. Unfortunately, they only support importing from a single RSS feed. I have both a Blog RSS feed and a Gallery2 RSS feed.

I tried www.feedcombine.com and was nearly happy, until I realized that they truncated my notes. If you do not mind having truncated notes and forcing users to come to your site to view the full entry, I recommend this solution. They do not even require you to sign up for an account!

I also tried www.feedbite.com, and was not as happy. This site requires a user registration. They also have a somewhat unintuitive interface for adding feeds to a “bundle”. This bundle then, after waiting nearly 15 minutes for it to cache the feeds (sorry, I need instant gratification…or at most 1-2 minutes), I had some results. The output was not ordered (everything was jumbled…)

FrankenFeed (www.frankenfeed.com) is quite pretty. There is a sign up. I made a frankenfeed. I could not get it to work? When I click the link to my RSS feed, even after waiting 10-15 minutes, it displays a blank page. Perhaps I need to wait longer. Nope, the developer emailed me back and he is looking into the problem.

The solution:

Facebook doesn’t check for valid RSS! Simple and gh3tt0:

$handle1 = fopen("http://www.benchodroff.com/feed/", "r");
$contents = stream_get_contents($handle1);
fclose($handle1);
echo $contents;

$handle2 = fopen("http://www.benchodroff.com/gallery/rss/gallery", "r");
$contents1 = stream_get_contents($handle2);
echo $contents1;
fclose($handle2);

?>

Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.


Other Posts
Go out and catch up
Baked Cinnamon Apple Slices

Write a Comment

Take a moment to comment and tell us what you think. Some basic HTML is allowed for formatting.

Reader Comments

We are currently working on a solution to the 15 minute wait period before a bundle loads up the feeds. In our next release, you will be able to ping your bundle and have the feeds downloaded instantly. We are also revamping our interface. Please check back in a week or so, and we are always glad to hear feedback and constructive criticism!

New feeds are now downloaded immediately. We also have a “ping” feature, where you can force update all the feeds in your bundle.

I like the looks of the new feedbite.com. The interface is much cleaner! I’ll still continue to use my hack only because of one reason, which I’m afraid no service will ever fix for security reasons: the truncation of my notes.

I cannot/do not want facebook to display a brief version of my blog notes - I want my entire note to be displayed, even if it is “very long”.

How long is “very long”? We do not truncate posts in our feeds today, but in the HTML viewer we will filter out most tags, leaving only some formatting, images and videos. Perhaps your definition of “very long” may change that!

My photos look great! However, my blog entries are truncated. Look at my bundle:
http://www.feedbite.com/html/?240/20

Notice the “Toasted pumpkin seeds” entry has a [...] at the end? This shows up in Facebook too because the XML version has it as well:
http://www.feedbite.com/xml/?240/20

I need the option to show the entire entry. This, however, poses a security issue. What would stop me from writing a blog post that contained an ASCII representation of a binary data file and then submitting it to your site? I could use your service to syndicate illegal media.

Unfortunately, the only person that can trust myself is me. Take a look at my solution:
http://www.benchodroff.com/allrss.php

Whoa - wait a second. This is odd. It does not contain the full article. Will get back to you later - maybe facebook connects to my site if it doesn’t see a description and downloads it. Um, not sure.

Nevermind about that “whoa” - it was just Firefox’s horrible RSS reader not showing it. It is like I expected - my allrss.php includes the entire entry.

Ah, we are currently not supporting the tag. That’s why the complete post is not being picked up by our RSS parser, and Firefox for that matter… I will see if there is anything I can do to help you out with that.

Just for clarity, there was a content:encoded tag reference in my last comment that was filtered.

It’s worth noting that the function stream_get_contents requires php5 or higher to be enabled. If you are getting fatal errors about undefined functions, that’s probably the problem.