title: Facebook Marketing API token without user input
body: <p>I'm currently creating a server CLI application retrieving facebook Ads metrics through the Marketing API, it would be done as a long running service on the server doing so periodically without user input, but I can't seem to find a way to get a token for doing so.</p>
  
  <p>All procedures to get an access token from facebook PHP Api seem to assume a user is there to login to facebook. I looked quickly to see if I could connect manually with curl but there is some js generated variables in the facebook login process, so that would complicate things.</p>
  
  <p>Is there any way to get Marketing API insight with only an app id/secret ? Or is it possible to retrieve an access token without user input ?</p>
  
  <p>The closest I've been is this :</p>
  
  <pre><code>Api::init(
            'appID', // App ID
            'APPSECRET',
            "appid|appstring"// APP token
          );
  $campaign = new Campaign('campaignID');
  $params = array(
    'date_preset' =&gt; InsightsPresets::LAST_7_DAYS,
  );
  $insights = $campaign-&gt;getInsights([], $params);
  print_r($insights);
  </code></pre>
  
  <p>But I get an error "Cannot determine the target object for this request. Currently supported objects include ad account, business account and associated objects."</p>