Ad

Access Page's Notes Via App Token

- 1 answer

according to fb's documentation (https://developers.facebook.com/docs/reference/api/page/) i don't need a user_access_token to retrieve the notes of a public page, an app_access_token should be enough. however, when i sent request like https://graph.facebook.com/starbucks/notes?access_token=my_app_token, i got the reply that a user access token is required.

my questions are:

  • did i misinterpret the documentation?
  • anyone else has the same problem?
  • anything i can do about it?

thanks!

Ad

Answer

Indeed there's something wrong in the notes connection. I honestly don't think that there's a wrong info in the documentation (but a bug in this specific connection).

I see a reported bug about this issue (reported by you?), but with a funny response from Facebook! Obviously the guy is just copy/pasting this "standard" official response and closing bugs randomly!

EVERYONE READING THIS DO THE FOLLOWING:

  1. Create a public page (or use an existing one)
  2. If the Notes app is not added to your page, Edit Page -> Apps -> Locate the Notes app and Edit Settings -> Add tab
  3. Now add a test note
  4. Go to the Graph API Explorer
  5. Choose one of your apps and GET the page's notes to see the current note: /page_id/notes
  6. Go the to the Access Token Tool, copy that app access_token and replace the one in the explorer with it
  7. Result:

    {
      "error": {
        "message": "A user access token is required to request this resource.",
        "type": "OAuthException"
      }
    }
    

If this was reproducible, then subscribe to the bug and confirm by clicking on "Yes" for the reproducible question.

Ad
source: stackoverflow.com
Ad