spring-attic/spring-social-twitter

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

Opened this issue · 0 comments

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.