Only FIRST DM from app works


#1

I have a TWEET SCORE button in my app which tweets a game score directly to a twitter account. My first DM goes through fine with

TWRequest *postRequest = [[TWRequest alloc] initWithURL:[NSURL URLWithString:@“http://api.twitter.com/1/direct_messages/new.json”] parameters:params requestMethod:TWRequestMethodPOST];

but any subsequent time I hit the button, I get a 403 (forbidden). Why would this be happening?

Thanks, RK


#2

Be sure and examine the message that accompanies the API response. You might find a message suggesting that you’re sending the same DM multiple times – we have duplicate submission protection on methods such as this, so you may be receiving the 403 as a result of sending a duplicative DM.


#3

Yes, that was it. Thank you.