Failed to get RSS feed for the provided URL!

"; $url = $_GET["URL"]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1'); $result = curl_exec($ch); if(curl_errno($ch)) { $response = "

Failed to get Facebook page!

"; } else { // find something like signup_dialog.php?page_id=184990264924& // $found = preg_match('/signup_dialog\.php\?page_id=(.*?)\&/', $result, $matches); // find something like profile_id=184990264924& $found = preg_match('/profile_id=(.*?)\&/', $result, $matches); if(isset($matches[1]) && $found) { $id = $matches[1]; $response = "

RSS-feed for Facebook page (add to your RSS Reader).

"; } else { $response = "

Failed to get ID from Facebook page!

"; } } } ?>

Enter the URL for a Facebook Page and get the link to the RSS-feed so you can use that in e.g. Google Reader.

Enter Facebook Page-URL: (e.g. http://www.facebook.com/BODYPUMP)

NOTE! It won't work for Profiles, just for Pages. The URL generated for a Profile will *not* work!