Note that there are some explanatory texts on larger screens.

plurals
  1. POUpload photos for past date
    text
    copied!<p>I am trying to upload few old photos with a past creation date so that they appear properly in timeline. Existing <a href="https://developers.facebook.com/docs/reference/api/" rel="nofollow">api</a> allows only to pass message and source. </p> <p>i.e</p> <pre><code> POST https://graph.facebook.com/ALBUM_ID/photos?access_token=xyz ..multipart.form.data.with.message.and.source.. </code></pre> <p>is the only way I can upload photos.</p> <pre><code> POST https://graph.facebook.com/PHOTO_ID?access_token=xyz created_time=2010-01-20T09:04Z&amp;updated_time=2010-01-20T09:04Z </code></pre> <p>doesn't move the photo date either.</p> <p>I tried creating a post out of the photo upload using the <a href="https://developers.facebook.com/docs/reference/api/post/" rel="nofollow">/feed</a> api, but it doesn't allow me to make an existing photo a post. It makes it a post of type link.</p> <p>What I want to exactly create a photo object and publish following:</p> <pre class="lang-js prettyprint-override"><code> { "id": "xx_yy", "from": { "name": "My Name", "id": "myfbid" }, "story": "&lt;My Name&gt; added a new photo.", "picture": "&lt;PhotoJPEG&gt;", "link": "&lt;FBPhoto_URL&gt;", "name": "Photo Name", "icon": "https://s-static.ak.facebook.com/rsrc.php/v1/yz/r/StEh3RhPvjk.gif", "actions": [ { "name": "Comment", "link": "https://www.facebook.com/xxx/posts/yy" }, { "name": "Like", "link": "https://www.facebook.com/xx/posts/yy" } ], "privacy": { "description": "Group", "value": "CUSTOM", "friends": "SOME_FRIENDS", "allow": "&lt;GROUPID&gt;" }, "place": { "id": "&lt;placeid&gt;", "name": "&lt;PlaceName&gt;" }, "type": "photo", "object_id": "12345", "created_time": "2010-09-20T13:37:54+0000", "updated_time": "2010-09-20T13:37:54+0000", "comments": { "count": 0 } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload