title: FB GraphAPI: Posting on FB page's wall from another website
body: <p>I'm creating a CMS for a website, and want to add functionality to post something (for example: news) to that website's FB Page [not to a user profile].</p>
  
  <p>I've read FB's documentation, and could find out that I need to have a FB application, which must have access to that Page. Then I'll be able to authenticate from my website as Application and post the link on the Page.</p>
  
  <p>I've created sample Page, and an <strong>empty</strong> Application (no working code). Then I've <strong>added</strong> it to the Page [on App Profile Page there is a button "Add to my page"]. The Application never requested any permissions, and, in fact, I don't know how can I "force" my App to request permissions from Page...</p>
  
  <p>Now, from my server I'm authenticating as Application:</p>
  
  <pre><code>$postArr = Array(
              'grant_type'=&gt;'client_credentials',
              'scope'=&gt;'publish_stream',
              'client_id'=&gt;$appId,
              'client_secret'=&gt;$appSecret
              );
  $access_token = CURL_post('https://graph.facebook.com/oauth/access_token',$postArr,true);
  </code></pre>
  
  <p>I get an Access Token, and try to post to the Page's wall:</p>
  
  <pre><code>$postArr = Array(
              'access_token'=&gt;$access,
              'message'=&gt;"Message!",
              'link'=&gt;'http://egern.net/',
              'name'=&gt;"TITLE",
              'caption'=&gt;"TITLE2!");
  $r = CURL_post("https://graph.facebook.com/MYPAGEID/feed",$postArr,true);
  </code></pre>
  
  <p>I get following error: (#200) The user hasn't authorized the application to perform this action</p>
  
  <p>Now I can't understand: how should the Page authorize the Application?</p>
  
  <p>Thanks.</p>