title: php - How to generate correct unixtimestamp for facebook api for scheduled posting on a wall?
body: <p>I've checked some previous questions in this subject but couldn't find a suitable solution for this .it seems very small problem , but strange one. The problem :</p>
  
  <p>I've create a php script to post on a users facebook pages using facebook php sdk. It works correctly when I want to publish my post on page directly. But I'm incurring an error when I set "scheduled_publish_time" for that. The error : </p>
  
  <blockquote>
    <p>(#100) The specified scheduled publish time is invalid.</p>
  </blockquote>
  
  <p>I think, I'm generating the unix timestamp correctly for this option.But can't find the problem . here is my code :</p>
  
  <pre><code>date_default_timezone_set('Americas/New_York');
  $date = strtotime("now +10 minute");
  
  //posts message on page statues
  $msg_body = array(
    'message' =&gt; $userMessage,
    'published' =&gt; 'false',
    'scheduled_publish_time' =&gt; $date
  );
  </code></pre>
  
  <p>I'll be thankful if anyone could help me.</p>