title: How to make a post to a Facebook page?
body: <p>I have a Facebook page at <a href="https://www.facebook.com/xxxx" rel="nofollow">https://www.facebook.com/xxxx</a> and a web site at <a href="http://xxxx.com" rel="nofollow">http://xxxx.com</a>. How do I make a status update to the facebook page to correspond with every new posting on the actual web site? That update should be authored by the page, and not by my personal Facebook account.</p>
  
  <p>I know it might seem like this is a duplicate question, but hear me out. I have been working on this for hours. I've found a lot of help on this topic, but all of it is incomplete or out of date. Most answers tell me what I need to do, but not how to do it.</p>
  
  <p>The closest thing I could find to what I'm looking for is this note in the official docs.</p>
  
  <p><a href="https://developers.facebook.com/docs/opengraph/#publishing" rel="nofollow">https://developers.facebook.com/docs/opengraph/#publishing</a></p>
  
  <p>Here's what I've been able to do so far. I created the facebook page. I created a facebook application. I added the app to the page. I added the app to my personal account and granted it the manage_pages permission. I tried to grant it manage_pages permission from the perspective of the page user, but that doesn't seem to be possible.</p>
  
  <p>I can use this to get an access key for the application:</p>
  
  <pre><code>curl -s -F grant_type=client_credentials -F client_id=APPID -F client_secret=APPSECRET https://graph.facebook.com/oauth/access_token
  </code></pre>
  
  <p>Then I try to do this to actually make a status update.</p>
  
  <pre><code>curl -s -F access_token=ACCESS_TOKEN -F message='test' https://graph.facebook.com/xxxx/feed
  </code></pre>
  
  <p>This returns a message that the user hasn't authorized the application to perform this action. I assume that's because I'm trying to post as the page user and not as my personal user. </p>
  
  <p>How can I get the correct access key to make a post on the page as the page user? Also, how can I be sure that access key won't expire? Once I have the access key, how do I actually make the post so that it shows up in the right place?</p>