Photos uploaded via Graph API with a scheduled publish are not published in the specified Album
I ran into this issue with a Page, since scheduled_publish_time can only be applied to Page Photos.
I tested the 4 scenarios:
1. uploading a single photo that was immediately published
2. uploading a single photo that was to be published in 15 minutes
3. creating a new album and uploading photos to that album that were immediately published
4. finally creating a new album and uploading photos to that album that had a scheduled_publish_time.
Scenario 1 and 3 act as predicted. The photos are published immediately and organized in the created and specified albums.
Scenario 2 and 4, however DO NOT act the same. The photos are published successfully at the specified time, however they are not published to the specified albums. These photos are published to a different album named after the FB App that scheduled the photos to be published. For instance, instead of my photos being published to the Album "Timed Gallery Test" (which I can see was successfully created on the GRAPH), my photos are published to a new "Max's App Photos" album.
I can understand the aggregation happening here since that is what normally happens with photos that do not have an album specified, however I have specified an album on creation.
Here is a sample of the code being used to create the albums and upload photos:
$facebook->setFileUploadSupport(true);
$album_details = array(
'name' => 'Timed Gallery Test',
'description' => 'Description of Timed Gallery Test',
'access_token' => {page_access_token},
);
$create_album = $facebook->api('/{page_id}/albums', 'post', $album_details);
$album_uid = $create_album['id'];
$schedule_time = '1342047241';
//Upload a photo to album of ID...
$photo_details = array(
'message'=> 'Gallery Test Photo 1',
'scheduled_publish_time' => $schedule_time,
'published' => FALSE,
);
$file='FILE.jpg';
$photo_details['image'] = '@' . realpath($file);;
$upload_photo = $facebook->api('/'.$album_uid.'/photos', 'post', $photo_details);