Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid authorization code #1

Open
mylastore opened this issue Nov 15, 2020 · 1 comment
Open

Invalid authorization code #1

mylastore opened this issue Nov 15, 2020 · 1 comment

Comments

@mylastore
Copy link

I am getting this error after running your example.

 data: {
      error_type: 'OAuthException',
      code: 400,
      error_message: 'Invalid authorization code'
    }
  },
  isAxiosError: true,
  toJSON: [Function (anonymous)],
  expose: true,
  statusCode: 422,
  status: 422,
  name: 'Error',
  message: 'Request failed with status code 400',
  stack: 'Error: Request failed with status code 400\n' +
    '    at createError (/Volumes/BK/seoblog/api/node_modules/axios/lib/core/createError.js:16:15)\n' +
    '    at settle (/Volumes/BK/seoblog/api/node_modules/axios/lib/core/settle.js:17:12)\n' +
    '    at IncomingMessage.handleStreamEnd (/Volumes/BK/seoblog/api/node_modules/axios/lib/adapters/http.js:236:11)\n' +
    '    at IncomingMessage.emit (events.js:326:22)\n' +
    '    at endReadableNT (_stream_readable.js:1244:12)\n' +
    '    at processTicksAndRejections (internal/process/task_queues.js:80:21)'
@loicnestler
Copy link
Owner

Did you follow the "Getting started" tutorial for the basic display API?

https://developers.facebook.com/docs/instagram-basic-display-api/getting-started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants