Error sending duplicate message on Twitter (MGTwitterEngine)

I use MGTwitterEngine for iPhone to support twitter, I get an error (403), and the second time I send a message on how to deal with this problem.

That is .. Let the message “what are you doing”, I publish using [mTwitterEngine sendUpdate: “what are you doing”] for the first time it is successfully sent, if I want to send the same message again it throws a 403 error.

How to handle this? Can I put a warning message "Duplicate message" if error number 403? Error 403 for duplicate messages only?

Added: Is it possible to check that a message has already been sent to MGTwitterEngine?

+3
source share
1 answer

Error 403 is not only intended to duplicate a message so that you cannot send an error message to the user.

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

You need to find the duplicate message in the application code, keeping the last updated message.

+2
source

Source: https://habr.com/ru/post/1765063/


All Articles