I am using the REST API (via the twitter rails gem) to post tweets from my app. 99% of the time this works fine, however, now and then I am getting this error message: “You cannot send messages to users who are not following you” This is super strange as I am not sending any direct messages. Here’s my code:
begin
client.update_with_media(tweet, file)
rescue Twitter::Error::Forbidden => e
raise "Twitter::Error::Forbidden #{e.message}."
end
end
Has anyone seen this?