I get an error from trying to import a Facebook Fan page feed.

warning: Invalid argument supplied for foreach() in ..../sites/all/modules/contrib/feeds_social/FeedsFacebookParser.inc on line 36.
warning: array_shift() [function.array-shift]: The argument should be an array in ..../sites/all/modules/contrib/feeds/includes/FeedsBatch.inc on line 141.

http://www.facebook.com/alliancetosaveenergy

You can get the feed from the source code.

http://www.facebook.com/feeds/page.php?format=atom10&id=21631059711

Comments

designguru’s picture

Status: Active » Needs work

It looks like this is specific to the facebook parser - which is setup to parse an older structure of facebook's rss feeds.

Is someone able to patch/rewrite the parser for facebook so that it works with newer facebook RSS feeds? They seem to have a common structure now as shown above...

q./

serbanghita’s picture

Assigned: Unassigned » serbanghita
Category: bug » feature
JonasK’s picture

I just had the same problem. But I got it to work by changing the format from atom to rss. So instead of using:
http://www.facebook.com/feeds/page.php?format=atom10&id=21631059711

I used:
http://www.facebook.com/feeds/page.php?format=rss20&id=21631059711

After this everything was ok. Maybe this helps someone...

lewie6’s picture

i getting similar error...

array_shift() [function.array-shift]: The argument should be an array in /feeds/includes/FeedsBatch.inc on line 263.