Facebook RSS feed

There are 150 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:

And here’s the URL to the same page using RSS 2.0:

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