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
Comment #1
designguru commentedIt 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./
Comment #2
serbanghita commentedComment #3
JonasK commentedI 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...
Comment #4
lewie6 commentedi getting similar error...
array_shift() [function.array-shift]: The argument should be an array in /feeds/includes/FeedsBatch.inc on line 263.