Search code examples
facebookfacebook-graph-apireal-time

Facebook real time update - "inbox" is an invalid field name


on https://developers.facebook.com/tools/explorer I am posting this:

appID/subscriptions?access_token=appID|appToken&object=user&fields=about,quotes,inbox&callback_url=http://example.com/callback.php&verify_token=tok

But I am getting this error:

{
  "error": {
    "message": (#100) "inbox" is an invalid field name,
    "type": OAuthException,
    "code": 100
  }
}

What is wrong with field inbox? On https://developers.facebook.com/docs/graph-api/reference/user/ there is this field.

I am trying to set it up so Facebook should let me know in realtime when user obtains new message in his inbox.

EDIT: "Inbox" is NOT FIELD but EDGE.


Solution

  • inbox is not a field name, it´s an API endpoint. Make sure you understand the difference. And as you can read in the docs about the Realtime API, there is no subscription field called inbox.