Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Official Facebook RSS feed for a Page

Tags:

facebook

rss

Many people have described how to obtain the RSS data feed for a Facebook page.
For example: http://ahrengot.com/tutorials/facebook-rss-feed/

The following URL provides the feed for Coca-Cola's page:
http://www.facebook.com/feeds/page.php?format=rss20&id=40796308305

However, I cannot seem to find any documentation on facebook.com that describes this interface. Does anyone know if this interface is officially supported by Facebook? I don't want to reference it in my code only to have it dropped unexpectedly by Facebook.

I know I could use the Graph API 'posts' method of the 'page' object to obtain similar data, but that requires SSL and an access token, which I would like to avoid if possible.

like image 837
iamJoeAnthony Avatar asked Oct 22 '12 22:10

iamJoeAnthony


People also ask

How do I turn a page into an RSS feed?

Right click an empty space on the website you'd like an RSS feed for, then click View Page Source (the exact wording may vary depending on your browser). If searching for rss doesn't work, try atom instead. Look for an RSS URL, as you can see above, then copy it into your feed reader.

Is it legal to post RSS feeds on your website?

However, if you want to use an RSS feed for commercial purposes, you need to get permission from the owner of the content. This means that you can't just take an RSS feed from a website and use it on your site without permission.

How do I add an RSS feed to my production?

Connect the RSS Feed to Your Facebook PageThen scroll to RSS Feeds and click on the Add button for Production RSS Feed. Though optional, we recommend configuring basic authentication (username and password) for your RSS feed and serving it with SSL/TLS (i.e. HTTPS) if you want your feed to be private.

Where can I get a RSS feed?

Find the RSS Feed URL Through the Page Source Looking at the HTML source of the website's page will also give you the RSS feed's URL. Right click on the website's page, and choose Page Source. In the new window that appears, use the “find” feature (Ctrl + F on a PC or Command + F on a Mac), and type in RSS.


Video Answer


2 Answers

Facebook have changed its implementation to get facebook page RSS Feed

Following steps to get Facebook RSS Feed

  • Create facebook App link

  • From the above App you will get client_id and client_secret and then call this url

    https://graph.facebook.com/oauth/access_token?client_id=client_id_value&client_secret=client_secret_value&grant_type=client_credentials

    Replace client_id_value and client_secret_value with its actual value

  • From the above url, you will get assess token, Pass this token in below url to get page RSS Feed

    https://graph.facebook.com/v2.2/1242433444/feed?access_token=access_token_value

here 1242433444 is facebook page id

like image 176
Akash Jain Avatar answered Oct 14 '22 08:10

Akash Jain


Seems like Facebook prefers JSON over RSS. They support both formats to date, but JSON will likely outlive RSS. I've created some code samples for how to parse the JSON feed with PHP if you're interested:

http://liljosh.com/facebook-page-json-rss-feed/

No access token is required if the page is published (step one in the link above).

like image 38
Josh LaMar Avatar answered Oct 14 '22 06:10

Josh LaMar