Facebook RSS feed

There are 146 comments.

Every Facebook page has an RSS feed. You can subscribe to that feed with your RSS reader. You can also embed it or build applications that use it and everything else you can do with an RSS feed. The only thing is, finding the URL of the feed can be difficult, so i decided to help a little and write this guide.

Example use case

To see an example of how you could customize a facebook feed, check out my case study Skive Festival 2012 where the feed is integrated into the overall design and appearing amidst the main feed along other news and artists.

Skive Festival home page

Facebook RSS feed implemented on Skive Festival

Step-by-step guide

Follow the three easy steps below to grab the feed. If you run into any trouble be sure to check out the comments below for various tips and tricks.

Step 1 – Getting your page id from Facebook

Everything on Facebook, from users to photos to events, has a numeric id. This id is used internally by Facebook to find different objects in its enormous database. When you request the RSS feed from a page, you’ll need to send the id of the page along with your request. That’s why the first thing you need to do is to find the id of your page. It’s pretty simple.

Open any Facebook page and click on the profile image. In the address bar you’ll see something like facebook.com/photo.php?fbid=10150651498353306&set=a...

The fbid part is what you’ll need.

Step 2 – Choosing a RSS format

You can choose between an atom feed and RSS 2.0. If you don’t know the difference just go with atom. To read more about Atom vs RSS 2.0 click here.

Step 3 – The complete RSS feed URL

I’ve used the fbid from the Coca-Cola page to demonstrate the URL’s. Just replace the numeric ID at the end with the id you found in step 1.

Here’s the URL to the Coca-Cola Facebook page as an atom feed:
http://www.facebook.com/feeds/page.php?format=atom10&id=40796308305

And here’s the URL to the same page using RSS 2.0:
http://www.facebook.com/feeds/page.php?format=rss20&id=40796308305

Update: You can get your personal feed as RSS too!

If you want your own(or any of your friends) wall feed as RSS you can do that via the FB RSS Facebook application. Thanks to Peter for pointing this one out in the comments.

Update Oct. 31, 2014: JSON Format

These days it’s likely that getting the data in JSON format is more helpful than RSS/XML. Luckily Facebook supports JSON too. You simply define the format as JSON like so: https://www.facebook.com/feeds/page.php?format=json&id=40796308305

  1. LeDude said:

    Still works! Just analyse FB’s IDs…
    By opening some pictures and comparing all given IDs in their URL it appered that the last number after the last dot is the right one as it’s always the same.
    With that number you will be able to get the feed

    • Gianna Williams replied with:

      This worked for me, but you have to make sure to include the “&type=1&theater” that comes after that magic number.

  2. puneet said:

    is there anyway i can get feeds of pages i dont own or admin???

    and can i capture their images and albums through that?

  3. mrsjones said:

    Love it! This works great–and you can follow the rss feed of a page you haven’t even liked! (Thanks to commenters on the tips for finding the right ID number, though–the instructions in the article point you to the wrong ID. It really is the one between the last period and the & symbol).

    And I think if you turn on notifications for each of your friends, you can get your entire FB news feed in your rss, if you want to abandon fb all together.

    Thanks for this!

    • IMGoph replied with:

      When you say “turn on notifications for each of your friends,” what exactly do you mean? Are you talking about using the ‘FBRSS’ app?

      I used to use the old RSS capability in Facebook to read all my friends’ updates in Google Reader. That got turned off on December 27, 2012, to the best of my knowledge. Is there a workaround now?

  4. Gregoire Dumas said:

    If you want a big image instead of the thumbnail just change the s at the end of the url by a b ;)

  5. Pimpum said:

    Can I read just comments and not photos doing this? I have problems using fql and I want to read comments from a fan page

  6. tswiatek said:

    I’m having no luck with this. Page ID # from profile image and Page ID inside page admin area just gives me a FB Syndication Error, no feed information shows.

    Tried with the &type & theater text as well at the end, still no go.

  7. april said:

    omg you saved me!!!i have been looking for months how to get feeds from facebook! thank you thank you

  8. robotic2 said:

    Yes, rather than the fbid number, in my case the correct number was the digits after the final decimal point for the “set” tag, as pointed out by Japheth Campbell. Thanks.

  9. Thommy Bayer said:

    Does it work for Facebook events? I need a rss feed from my personal Facebook events …