title: How to automaticaly post on Facebook page with PHP
body: <p>I'm trying to find solution for automatic posting to my funpage from PHP script, but without user prompt.</p>
  
  <p>My usecase is quite simple - every friday there is event related with my funpage and I would like to post on site wall some information about it (loaded from database) using cron script written in PHP. I would like to use my account to do it.</p>
  
  <p>I found a lot of articles related to autoposting but most of them are stale.</p>
  
  <p>I created new FB application and few lines of code:</p>
  
  <pre><code>$fb = new \Facebook\Facebook([
    'app_id' =&gt; '1897212530527861',
    'app_secret' =&gt; $app_secret,
    'default_access_token' =&gt; $app_access_token,
    'default_graph_version' =&gt; 'v2.9',
  ]);
  
  $params = [
      'link' =&gt; 'www.myurl.com',
      'message' =&gt; 'Info about the meeting',
  ];
  
  $response = $fb-&gt;post('/my.funpage/feed', $params);
  </code></pre>
  
  <p>Currently I am reaching error:</p>
  
  <blockquote>
    <p>The user hasn't authorized the application to perform this action</p>
  </blockquote>
  
  <p>Might it be related to missing permissions in applciation configuration? I requested for publish_pages and manage_pages, but I can not review it while 
  <a href="https://i.stack.imgur.com/i3I4L.png" rel="nofollow noreferrer">there is message</a>.</p>