Thursday, January 3, 2019

(#100) Tried accessing nonexisting field (messages) on node type (Page)

Error

{

  "error": {
    "message": "(#100) Tried accessing nonexisting field (messages) on node type (Page)",    "type": "OAuthException",    "code": 100,    "fbtrace_id": "XYZ"

  }}




Solution


I had a spelling mistake in the request JSON
request(
{
  url: 'https://graph.facebook.com/v3.2/me/messages',
  qs: {access_token: 'PAGE_TOKEN'},
  methode: 'POST',
  json: messageData

});


No comments:

Post a Comment