Reputation: 101
(noob question) Using the example.php that comes with the PHP SDK I can post to my timeline successfully.
I'd like though to be able to set the date, so I added:
:
:
'created_time' => "2012-06-21T13:46:10+0000",
'updated_time' => "2012-02-19T14:46:10+0000",
'actions' => array(
array(
'name' => 'Get Search',
'link' => 'http://www.google.com'
)
)
);
$result = $facebook->api('/me/feed/', 'post', $attachment);
?>
<?php endif ?>
But created_time is ignored, the post is always "NOW". I've searched around for a solution to this but found nothing. Am i doing something wrong, is it a typo, or just not possible like this?
Looking on the web I did find articles about placing "ACTIONS" in the past - e.g.: How can I add a custom date to the facebook timeline through graph api
Is that the (only?) way to go, create a "publish" action ,,. with start_time etc.? Any links to how to do this (in PHP?)
Upvotes: 3
Views: 1095
Reputation: 15457
You can only create actions in the past, not Posts using the API. However, you can manually change the date of a post using the Activity Log - it doesn't look like this feature is available via the API yet.
Upvotes: 3