I've manage a martial arts school's website, the schook also has a facebook group where friends and students can publish their news and photos.
I would like to fetch the group's albums and display their pictures in the website of the school.
So I tried this short script:
<?php
require_once(__DIR__.'/lib/facebook.php');
$facebook = new Facebook(array(
'appId' => 'API_KEY',
'secret' => 'API_SECRET',
));
$group = $facebook->api('GROUP_ID');
echo $group
?>
Which is raising this error in the app's log
Wed Aug 10 01:16:30 2011] [error] [client 127.0.0.1] PHP Fatal error: Uncaught CurlException: 6: name lookup timed out thrown in './lib/base_facebook.php on line 814
So I wonder if this is the way to do it or if I should try getting the albums from elsewhere...
I find the documentation in developers.facebook.com scarce or confusing.