Error 401 oauth2 error

some day i will make web app that use twitter login. I use library from Abraham Williams you can access on Github https://github.com/abraham/twitteroauth.

The problem begin when i create Twitter App and i got the consumer key and secret key. I think the setup is correct but i got code 401 you can check more code respon in here https://dev.twitter.com/overview/api/response-codes that problem drive me crazy now that is my solution about it.

First, when you creating twitter app don’t click ‘create access token’ until you modify permission on your app. the permission modify to Read, Write and Access Direct Message.

Second, After your Twitter application has been updated to “Read, Write and Access direct messages”, click on the Key and Access Token Tab, and “create your access token” on the bottom .

Error 401 : Unauthorized app Twitter
Tagged on:

Leave a Reply