I have set my application permissions as "read, Write, Direct Messages" as shown in the figure
I have saved these settings.
But when i authenticate my app. it shows that my application will not be able to access direct messages.As shown in the figure
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