Community & Support

Feed Aggregator with Facebook Group Wall

I am trying to point the Feed Aggregator to a Facebook Group wall:
http://www.facebook.com/feeds/page.php?format=rss20&id=303013625270

The Feed Aggregator reports no errors when I add the feed, or when I update items, but it doesn't pull any items down. I know there are items in the feed (they are there when I open the feed URL in my browser), so it must be something else.

As a further test, I tried copying the contents of the feed into a static file on another web server I own, and I made sure that the file ended in ".rss". When I pointed the Feed Aggregator to this file, it loaded the content without a hitch.

Any ideas?

Comments

I think, its not possible.

I think, its not possible. Facebook rss/atom feed is blocked(i gues) by user-agent. Anything else the RSS reader or browser id forbidden. I ve tried Lynx and unix wget and it both fails.

Is there any other simple way, how to agreggate facebook wall?

I had a site where i needed

I had a site where i needed to get the last 6 posts of a Facebook group's wall.

Here is what I did:

download the facebook.php from http://wiki.developers.facebook.com/index.php/PHP

create app on facebook to get appid and secret http://developers.facebook.com/setup/

here is little php snippet I used to get the feed from facebook.

<?php
   
require_once 'facebook.php';
   
   
$appId = '123456'; //appid from facebook
   
$secret = '1234567'; //secret from facebook
   
$groupId = '89012345'; //facebook groupid
   
   
$facebook = new Facebook(array(
     
'appId'  => $appId,
     
'secret' => $secret,
     
'cookie' => true,
    ));
   
   
$response = $facebook->api('/'.$groupId.'/feed', array('limit' => 6, 'fields'=>'from,message,created_time'));   
    print
"<div class='facebook-feed-title'>Facebook Feed</div>";
    foreach (
$response['data'] as $value) {
        print
"<div class='facebook-from'><a href='http://www.facebook.com/home.php?#!/profile.php?id=".$value['from']['id']."'>".$value['from']['name']."</a> wrote:</div>";
        print
"<div class='facebook-message'>".$value['message']."</div>";
       
    }
?>

The facebook api returns the fields that are passed to it: from, message, created_time. To see all available fields (ie images, comments..etc) remove the 'fields' parameter.

had a small module created out of this code

Can you share the module?

Would you be able to share the module you made? Or can I just put facebook.php somewhere in a directory if I'm on shared hosting? I tried to put it in the includes directory of drupal but I still get php errors

I found out how to do what I wanted by making something called a fan button. Not sure it will work with a group but it works with a facebook fan page. See http://drupal.org/node/866194#comment-3256158

Facebook Group Feed

I think you can do it with http://groupfeed.climatesceptics.org/