Created By
Max Kirchoff
07/11/2012 4:03pm

Subscribers (15)

BugsPhotos uploaded via Graph API with a scheduled_publish_time are not published in the specified Album

  • Status: Closed
  • Priority: Medium
  • Updated: April 16 at 11:16am
Latest response from Facebook
Sean Quinlan
I'm unable to reproduce this error. Please open a new bug if you are still experiencing this issue. Thanks!
Status changed to Closed · April 16 at 11:16am
Sean Quinlan
Thanks for the report. We will follow up.
Status changed to Triaged · September 10, 2012 at 12:48pm
Sean Quinlan
This should now be resolved. Thanks for your patience.
Status changed to Fixed · August 1, 2012 at 9:57am
Sean Quinlan
Thanks for the report. We are looking into this.
Priority changed to Medium · July 16, 2012 at 7:45pm
Sean Quinlan
Thanks for the report. We are looking into this.
Status changed to Assigned · July 12, 2012 at 3:24pm
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);
3 people can reproduce this issue by following these steps
Repro