spring-attic / spring-social-twitter

Twitter API binding and connect support.
http://projects.spring.io/spring-social-twitter
Apache License 2.0
122 stars 114 forks source link

You can't send Direct Message to a user who allows for messages from anyone #118

Open paweljarosz83 opened 6 years ago

paweljarosz83 commented 6 years ago

Since 2015 Twitter allows sending messages to any user who checked "Receive Direct Messages from anyone" in profile settings. You can't do that with Spring Social Twitter. If a recipient has this option unchecked, there's the expected exception: org.springframework.social.twitter.api.InvalidMessageRecipientException: You cannot send messages to users who are not following you. But with this option checked, there is also an exception: org.springframework.social.OperationNotPermittedException: You are sending a Direct Message to users that do not follow you.