pradel / node-instagram

Instagram api client for node that support promises.
MIT License
190 stars 27 forks source link

example express auth throw error: "You must provide a client_id" #24

Closed Glowin closed 6 years ago

Glowin commented 6 years ago

I run example express auth, but throw error:

{"error_type":"OAuthException","code":400,"error_message":"You must provide a client_id"}

I think the problem is header, change content-type to application/x-www-form-urlencoded maybe solve this problem.

refer: https://stackoverflow.com/questions/33541677/instagram-api-unable-to-request-access-token

pradel commented 6 years ago

Hey can you try the latest version I just pushed? It should be fixed. Thanks for pointing this issue.

Glowin commented 6 years ago

Great, it's fix 400 error, Thank you for your contribution.