node-facebook / facebook-node-sdk

Modeled from the (Facebook Javascript SDK), now with the facebook-node-sdk you can now easily write the same code and share between your server (nodejs) and the client (Facebook Javascript SDK).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

what for depricated api's !

mohd7469 opened this issue · comments

looks like these are some similar apis which through error message of depricated endpoints, is there

any other way to handle this ? or get the unread messages and notification through graph api ?

/me/inbox
/me/notifications?unread

{
  "error": {
    "message": "(#200) This endpoint is deprecated since the required permission read_mailbox is deprecated",
    "type": "OAuthException",
    "code": 200,
    "fbtrace_id": "AtAVAEQ21gQ"
  }
}
{
  "error": {
    "message": "(#200) This endpoint is deprecated since the required permission manage_notifications is deprecated",
    "type": "OAuthException",
    "code": 200,
    "fbtrace_id": "BShW9guSo1p"
  }
}

Please ask this question on Stack Overflow, I don't have an answer to it. The SDK just passes API calls to the graph API as you ask it to, it does not call deprecated endpoints on its own.