title: Facebook App - Requires either publish_actions permission, or manage_pages and publish_pages as an admin with sufficient administrative permission
body: <p>The App is public and it has been granted the appropriate permissions:
  <a href="https://i.stack.imgur.com/aqPNP.png" rel="nofollow noreferrer">Display of app permissions</a></p>
  
  <p>My logged in user is an administrator to the App: <a href="https://i.stack.imgur.com/MuYbs.jpg" rel="nofollow noreferrer">Display of user permissions</a></p>
  
  <p>The code is as follows:</p>
  
  <pre><code>import facebook
  import warnings
  
  
  
  # Hide deprecation warnings. The facebook module isn't that up-to-date (facebook.GraphAPIError).
  warnings.filterwarnings('ignore', category=DeprecationWarning)
  
  
  # Parameters of your app and the id of the profile you want to mess with.
  FACEBOOK_APP_ID     = 'SECRET'
  FACEBOOK_APP_SECRET = 'SECRET'
  FACEBOOK_PROFILE_ID = 'SECRET'
  
  fb_api=facebook.GraphAPI()
  api_token=fb_api.get_app_access_token(app_id=FACEBOOK_APP_ID, app_secret=FACEBOOK_APP_SECRET, offline=True)
  
  graph = facebook.GraphAPI(api_token)
  # Try to post something on the wall.
  try:
      fb_response = graph.put_object(parent_object=FACEBOOK_PROFILE_ID, connection_name='feed',
                       message='Hello, world')
      print(fb_response)
  except facebook.GraphAPIError as e:
      print('Something went wrong:', e.type, e.message)
  </code></pre>
  
  <p>This code fails with the error message:
  OAuthException (#200) Requires either publish_actions permission, or manage_pages and publish_pages as an admin with sufficient administrative permission</p>
  
  <p>I am certain at this point I have followed all the things I've read in any other post. The docs they have for the sdk are <a href="https://github.com/mobolic/facebook-sdk/blob/469771cdaabbf5111cb84b1f4a6be536edefb687/docs/api.rst" rel="nofollow noreferrer">here</a>.</p>