Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while posting duplicate message in Twitter(MGTwitterEngine)

I am using MGTwitterEngine for iPhone to support twitter, I am getting error(403) while posting a message second time how to handle this issue.

That is.. Let the message is "what are you doing" I am posting using [mTwitterEngine sendUpdate:"what are you doing"] for first time it is posted successfully, if i want to post the same message again it is throwing 403 error.

How to handle this? Can i put the alert "Duplicate message" if error no 403? Is 403 error for duplicate messages only?

Added : Is it possible to check if an message is already posted in MGTwitterEngine?

like image 385
Chandan Shetty SP Avatar asked Dec 20 '25 17:12

Chandan Shetty SP


1 Answers

The 403 error is not only for duplicate message so that you cannot throw the error message to user.

http://developer.twitter.com/pages/responses_errors

You have to find the duplicate message in your application code by keeping the last updated message.

like image 87
Anil Sivadas Avatar answered Dec 22 '25 08:12

Anil Sivadas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!