Question

I use MGTwitterEngine in my iOS app.

I use this callback for check success posted my message.

- (void)requestSucceeded:(NSString *)connectionIdentifier

But how can I check if I alredy have posted my tweet and I don't want to duplicate it.

For example if I use iOS 5.0 in response I get UIAlertView:

Cannot Send Tweet

The tweet, "bla bla bla" is a dupliacte and cannot be sent.

How to create the same verification using MGTwitterEngine?

Was it helpful?

Solution

If you try to post a duplicate message, the Twitter API will respond with

403: Status is a duplicate.

Check the return status code and message, that will tell you if a tweet has been successful or not.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top