I have this code that works fine (in that it creates the album properly). However, it creates two identical albums. I've tried removing message and privacy (not that this should have changed anything, but still). Nothing I try is changing the fact that this code creates two albums. I've even gone so far as to comment it out to ensure that it was the only code firing and no albums were created. I have code after this to post two test pictures and it only posts the pictures to one of the groups. However, I have an exit after this code, so I've ensured it's the only code firing.
Help, Please!
print "Creating album\n";
try {
$ret_obj = $facebook->api('/me/albums', 'post', array(
'access_code' => $access_code,
'name' => 'Coolest Album',
'message' => 'Coolest Album containing bike stuff',
'privacy' => array('value'=>'EVERYONE'),
));
} catch (Exception $e) {
print_r($e->getMessage());
}
print "Album created\n";`