title: How do I get the App Access Token via the Facebook PHP SDK?
body: <p>I'm trying to retrieve the app access token of my app in order to post notifications, but for some reason, it doesn't work. Here's the code:</p>
  
  <pre><code>$AppParams = array(
      'client_id'     =&gt; 'myclientid',
      '&amp;client_secret' =&gt; 'myclientsecret',
      '&amp;grant_type'    =&gt;'client_credentials'
      );
  $AppToken = $facebook-&gt;api('oauth/access_token?', 'GET', $AppParams);
  </code></pre>
  
  <p>I also replaced the first part with the full oauth/accesstoken link, but then it returns me general information about oauth and their facebook page, which I do not want.
  I did nearly the same thing in C# and there it works. </p>