title: open graph (#15) This method must be called with an app access_token. then 2500
body: <p>I'm trying to POST a new open graph action to Facebook, but I can't seem to get the right access_token.  I've tried both an app and a user token.  Each time the error tells me to use the other.</p>
  
  <p>I'm actually using django_facebook, but for this example, I'll just talk in raw http.  (BTW, these app ids/secrets are all bogus no need to redact.)  </p>
  
  <p>For this example, I have a properly working open graph object called a "promotion", and I ran the debugger on it, it's all good.  It works from a site like this: <a href="http://mysite.com/promotion/66306/" rel="nofollow">http://mysite.com/promotion/66306/</a>  Then I have a new open graph action type (for sake of example) called myaction which I've registered with Facebook.  </p>
  
  <p>Here's what I've tried...</p>
  
  <p><strong>Step 1:  Get an App Access Token</strong></p>
  
  <pre><code>https://graph.facebook.com/oauth/access_token?client_id=1111111111&amp;client_secret=my11app22secret&amp;grant_type=client_credentials
  </code></pre>
  
  <p>returns this:</p>
  
  <pre><code>access_token=1111111111|someapptoken
  </code></pre>
  
  <p><strong>Step 2: Get a user Token</strong> </p>
  
  <p>by going here: <a href="https://developers.facebook.com/tools/explorer/" rel="nofollow">https://developers.facebook.com/tools/explorer/</a>
  chose my app, get access token, with the permission <strong>publish_actions</strong></p>
  
  <pre><code>Access Token:someLongUserToken
  </code></pre>
  
  <p><strong>Step 3: Try with the user token</strong></p>
  
  <pre><code>curl -X POST -F 'promotion=http://mysite.com/promotion/66306/' -F 'access_token=someLongUserToken' https://graph.facebook.com/me/myapp:myaction
  {"error":{"message":"(#15) This method must be called with an app access_token.","type":"OAuthException","code":15}}
  </code></pre>
  
  <p><strong>Step 4: Try with the app token</strong></p>
  
  <pre><code>curl -X POST -F 'promotion=http://mysite.com/promotion/66306/' -F 'access_token=1111111111|someapptoken' https://graph.facebook.com/me/myapp:myaction
  {"error":{"message":"An active access token must be used to query information about the current user.","type":"OAuthException","code":2500}}
  </code></pre>
  
  <p>Now a big clue may be that I haven't yet gotten "approval" for my action type, however I'm an admin on the app, so it should work, no?</p>
  
  <pre><code>Approval Status:
  Unsubmitted
  This Action Type must be submitted for review in order for it to be available to all users. This Action Type is available to admins and developers of the app.
  </code></pre>
  
  <p>What am I missing?</p>
  
  <p>Thanks!
  -Jeff</p>