I set my application permissions as βread, write, direct messages,β as shown in the figure. 
I saved these settings.
But when I authenticate my application. it shows that my application will not be able to access direct messages. As it shown on the picture 
Please help me, I am stuck with this problem from many days. I am using abraham oauthtwitter api from here https://github.com/abraham/twitteroauth
source share